mojira.dev
MC-62150

Tellraw still executes even if it contains a selector for a player that can't be found.

When running /tellraw in a command block, if the json contains a player selector that can't be found, the command runs anyways. This is much easier to explain with a command.

How to Reproduce:

1) Place a command block with a button on it.
2) Enter "/tellraw @a {text:'',extra:['Welcome ',{selector:'@p[r=1]'},' to the server!']}
3) Stand on the command block, and press the button. It says "Welcome, <playername> to the server!"
4) Stand away from the block, and press it again. It says "Welcome, to the server!"

Comments 3

Also happens in 14w29b... Can you add this version to the bug report?

If this works as intended, we need something to replace the old method where the command fails if the selector is not found.

That would be a preemptive /testfor.

Ham Sammich

michael

Unconfirmed

Minecraft 14w29a, Minecraft 14w29b

Retrieved