How to use a command block to welcome new players on a server in Minecraft?
Ok, so me and my friend own a server, it uses Minecraft 1.6.4. What I can't seem to figure out, is how to welcome new users to the server by saying Welcome USER To Northwood, when they join.
Best Answer
My best way to check first login independent on spawn position:
SIMPLE (one title):
- /scoreboard teams add notFirstLogin
- build simple clock f.e. 1 sec cyclus with block /testfor @a[team=]
- result from testfor comparator goes to the welcome message (/title @a[team=]
- after message put repeater with some delay and then command_block with: /scoreboard teams join notFirstLogin @a[team=]
logic of this proccess:
- player without team is first time on the server
- all players have some team except new guys
- if you have more complicated welcome (more than one title @a[team=] title ...) is necessary put there some waiting values:
COMPLICATED (more titles)
/scoreboard teams add notFirstLogin
/scoreboard objectives add W8ing4Welcome dummy
/scoreboard objectives add ShowWelcome dummy
build simple clock f.e. 1 sec cyclus with two cmd_blocks:
/scoreboard players set W8ing4Welcome @a[team=] 1
3.x: ... others things that are necessary call at first login 3.before_end: small repeater delay 3.end: /scoreboard teams join notFirstLogin @a[team=]/testfor @a[score_W8ing4Welcome_min=1] ... here connect all welcomes in series:
4.1. logical circuit AND within /testfor @a[score_ShowWelcome_min=1] ... checking that here is NOBODY with ShowWelcome=1 ... this is important to prevent covering of messages 4.2. /scoreboard playes set @a[score_W8ing4Welcome_min=1] ShowWelcome 1 4.3. small repeater delay 4.4. /scoreboard playes set @a[score_ShowWelcome_min=1] W8ing4Welcome 0 4.5. small repeater delay 4.6. /title @a[score_ShowWelcome_min=1] title ... 4.7. small repeater delay 4.8. /title @a[score_ShowWelcome_min=1] title ... 4.x .... 4.end. /scoreboard playes set @a[score_ShowWelcome_min=1] ShowWelcome 0
Pictures about "How to use a command block to welcome new players on a server in Minecraft?"



How do you make a command block welcome?
If you only want it to run the command the first time they join, try this:How do you execute a command when someone joins a Minecraft server?
2. display "Welcome back [player] to the server!" in chat, visible for everyone. Since players join for the first time, they won't have the firstJoin tag. you can execute the tellraw (or whatever) off of that, then add the tag to display the message only the very first time they join the server.How do you send a welcome message on a Minecraft server?
To send a friend request, use /friend [username]. Commands of friends system: /friend [player] - Friend a player/send friend request. /unfriend [player] - Remove a friend from your friend's list.Welcome Message on Login - Minecraft Command Block Tutorial [1.14+]
More answers regarding how to use a command block to welcome new players on a server in Minecraft?
Answer 2
if you want to test for new players use Johan37251's Command block creation way easier
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Pixabay, Jim De Ramos, Meruyert Gonullu, Maria Orlova
