-
Bug
-
Resolution: Fixed
-
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
-
Community Consensus
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.
- relates to
-
MC-99748 scoreboard teams join and leave not showing error message for missing player argument in command blocks
- Resolved
-
MC-18060 Several realms strings are untranslatable
- Resolved
-
MC-46341 Some text isn't translated and isn't available on Crowdin
- Resolved
-
MC-76648 Error messages for invalid item or block name have no translation on crowdin
- Resolved
-
MC-79677 /execute does not execute as a Player (or entity)
- Resolved
-
MC-5002 Some texts can't be translated in a language file
- Resolved