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

commands with optional player argument have missing error translation in command blocks

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.8.3, Minecraft 15w47c, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.4, Minecraft 16w21a, Minecraft 16w44a
    • Fix Version/s: Minecraft 1.11
    • Confirmation Status:
      Community Consensus

      Description

      The bug

      When you enter this

      /kill
      

      command into a command block, it will give you this error message, regardless what language you selected (because it has no translation)

      [15:40:45] You must specify which player you wish to perform this action on.
      

      Affected commands

      • /achievement
      • /clear
      • /gamemode
      • /kill
      • /scoreboard teams (join and leave) (uses the same method but does not print the correct error message in command blocks for some reason)
      • /setworldspawn
      • /spawnpoint
      • /xp

      The reason

      The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version.

      The method net.minecraft.command.CommandBase.getCommandSenderAsPlayer(ICommandSender) throws a PlayerNotFoundException with this error message (not a translation) if the sender is not a player.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grum [Mojang] Grum (Erik Broes)
                Reporter:
                marcono1234 [Helper] Marcono1234
              • Votes:
                5 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: