Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-164535

/playsound uses wrong feedback message for multiple targets

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      Low

      Description

      The bug

      The /playsound command should use different feedback messages depending on whether one or multiple players are targeted:

      commands.playsound.success.single
      commands.playsound.success.multiple
      

      However, currently the code always uses commands.playsound.success.single:

      net.minecraft.server.commands.PlaySoundCommand#playSound
      if (collection.size() == 1) {
          cn2.sendSuccess(new TranslatableComponent("commands.playsound.success.single", sj2, collection.iterator().next().getDisplayName()), true);
      } else {
          cn2.sendSuccess(new TranslatableComponent("commands.playsound.success.single", sj2, collection.iterator().next().getDisplayName()), true);
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slicedlime [Mojang] slicedlime
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                3 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: