I'm trying to get a command block to write in the chat, and it is working, but it is displaying it to all players in the server. I only want the chat to appear to the player that steps on the pressure plate. Ive tried everything from @p
and @s
.
example of text I try is below
/tellraw @p {"text":"Hello World!"}
but that tells it to every player. I've tried
/tellraw @p[distance=3] {"text":"Hello World!"}
but that doesn't work either.
/tellraw @p
does not do anything for every player. How did you test this? And in what version are you playing?