Mojira Archive
MC-55493

JSON text selectors have always predefined clickEvent and hoverEvent

The bug

When you use a selector:@p in a /tellraw command and then execute it, it will ignore hoverEvent and clickEvent, instead it will show your UUID and when you click it, it suggests the /msg command. This limits the use of the /tellraw command in combination with selectors drastically.

How to reproduce

/tellraw @p {"selector":"@p","hoverEvent":{"action":"show_text","value":"Test"},"clickEvent":{"action":"run_command","value":"/say Test"}}

Maybe the suggested /msg Player is useful, so I would rather recommend, that when something other is given than the "selector:@p" for example a different clickEvent only then it should use the different clickEvent.

Note: This behaviour is consistent for all game elements that support JSON-text. So also signs and books get the suggest_command action which does not work for them.