Mojira Archive
MC-79677

/execute does not execute as a Player (or entity)

if you want to execute for example the command

/execute @r ~ ~ ~ scoreboard teams join Team 4 

it will give you two error messages:
Player 'commands.generic.player.unspecified' cannot be found
and
`Failed to execute 'tp ~ ~1 ~' as <Player name>
where <Player name> is the @p player.
There are three bugs here, but if one gets fixed, the others become irrelevant:

  • The command doesn't work like it would if it got executed from the player (which execute should simulate).
  • The player name doesn't get put into the first error message. If the target selection for example meets an item, it gets displayed the same way as in the /kill feedback, but not for the player.
  • There are two error messages for one error.

If the first one gets fixed, the other two get irrelevant.

Works As Intended

Robin T.

[Mojang] Searge (Michael Stoyke)

2015-04-18, 08:48 PM

2017-11-09, 05:48 PM

2015-11-30, 01:14 PM

2

6

Community Consensus

Minecraft 1.8.3 - Minecraft 15w43cMinecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.6, Minecraft 15w37a, Minecraft 15w43c

-