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.
The Meaning of Life, the Universe, and Everything.
I can actually think of two ways to do this:
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: