I'm trying to add a welcome message on my server that will show a message when a player logs on. Everything works fine, but I want it to only show it the player who just joined, not the whole server. I'm a noob when it comes to command blocks. Any suggestions?
So, when I use the code I originally had, it will only show the message to the first person on the server. Here is the code and the command block set-up.
CB 1: /testfor @a[scoreboard_log_min=1]
CB 2: /scoreboard players set @a log 0
CB 3: /tellraw @a {"text":"Welcome To N.O.P.S","color":"red"}
Hello all!
I'm trying to add a welcome message on my server that will show a message when a player logs on. Everything works fine, but I want it to only show it the player who just joined, not the whole server. I'm a noob when it comes to command blocks. Any suggestions?
Thank you so much!
You can use stat.leaveGame to only display it to newly joining players on their first join.
Or on every join. Just connect either of these to some kind of clock.Thanks! I'll try it today.
So, when I use the code I originally had, it will only show the message to the first person on the server. Here is the code and the command block set-up.
CB 1: /testfor @a[scoreboard_log_min=1]
CB 2: /scoreboard players set @a log 0
CB 3: /tellraw @a {"text":"Welcome To N.O.P.S","color":"red"}
Can you please help me?
Thank you!
Is anyone going to answer this anymore?