I'm wondering about a potential command block program that will give a player a Unique id that I can use for multiple things. Just I need the command to pick up every single id that has joined that day (All ids reset at midnight) And know when they leave, so they can tag that id with leave
when they join however it gives them the tag join
. Once they join and lose the leave
tag, they are given an actionbar message. If there is a simpler way please tell me!
Note: basically my goal here is to detect when someone leaves, and when they join gives them a message that is once per join. When they rejoin they get the message again, but never get it again per that session on the server.
Edit: So Its Kinda Of A Arena server so when you join I want to to say in the actiobar &7Welcome, You Are In Arena &C&l1
. And Then Shut Off after about 2 seconds or so. The session is when someone joined until they leave. Not a first time join thing, it is sent every time the player joins.
join
. If they have the join tag when they rejoin the server they get a message. Then the tagjoin
is removed. Im stuck at the part where when they leave they are tagged withjoin
in which restarts the cycle. @MBraedly I am glad you tryed to find a duplicate but my problem is I want the message to appear every time they join. @54D Thanks for not making fun of my grammar, and yes I do. @IronAnvil I kinda misused the word session in the question, and theres really no need for it to be there.