Command:
tellraw @a {"text":"hover","hoverEvent":{"action":"show_text","value":{"score":{"name":"*","objective":"health"}}}}
When You use * symbol as "name" it should show player's (health is example of score).
Linked issues
Attachments
Comments 2
a * in a command targets all listed objects with a score value, score:{} parameter can only accept a single player, it will result in an error, after some testing i discovered that just using a selector causes the said bug, when using a direct name the problem is resolved, so to get around this you would just copy @p's score to a dummy player and use it instead
Dupe of MC-56373