How to a show message only once?
//ads -- adsterra.com -- native banner
?>
I'm making a minigame map where I want to show a text saying "Hi You Joined Seeker" when a player teleports to a set coordinate. I tried doing /testfor @a/@p[1,2,3,1]
, but it started saying that to every player that comes near the radius (so players get the same message twice and thrice). Is there any command that can help me with this?
Best Answer
Try these commands, on a repeating command block and a chain command block, in order:
/tell @a[1,2,3,1,tag=!seeker] Hi you joined 'Seeker'
/scoreboard players tag add @a[1,2,3,1,tag=!seeker] seeker
When they teleport out, also run this command:
/scoreboard players tag remove @p[1,2,3,1] seeker
Pictures about "How to a show message only once?"
PHP \u0026 JS - Show Message ONLY once
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Angela Roma, Angela Roma, SHVETS production, SHVETS production