Hi everyone. I've got a server where my mini games won't work unless when someone disconnects and then rejoin they warp to the spawn point of my server (the lobby) I think it reqires a scoreboard but I can't find anything that will suit the problem.
1. In "server.properties", you can change "force-gamemode" to true, and "gamemode" to 3 (spectator) or any gamemode you don't want people in. Then use a repeating command block to tp everyone in that gamemode to spawn, and a chain command block to change their gamemode:
/tp @a[m=3] x y z
/gamemode adventure @a[m=3]
2. You can use the scoreboard objective type "stat.leaveGame" to see if anyone leaves:
Hi everyone. I've got a server where my mini games won't work unless when someone disconnects and then rejoin they warp to the spawn point of my server (the lobby) I think it reqires a scoreboard but I can't find anything that will suit the problem.
Using plugins:
SpawnJoin – This plugin is what I would recommend for your problem. Just do /spawnjoin set and that's the auto-spawn!
There is not way to achieve this with command blocks, as there is no way to check the time since a player login.
I can actually think of two ways to do this:
Thank you very much! This was helpful!