For some gamemodes, allow spectator mode. Spectator mode would activate when a player leaves early, dies, or joins late.
Either have this mode put the player in a flying glass box so the game can be spectated from above, or put the player in gamemode 3 and bind them to a living participating player. Having people fly around freely in spectator mode would allow to go through blocks, which is unwanted behaviour.
Putting a player in creative mode and making them invisible would still allow them to interact with other entities, for example pushing them off cliffs.
For some gamemodes, allow spectator mode. Spectator mode would activate when a player leaves early, dies, or joins late.
Either have this mode put the player in a flying glass box so the game can be spectated from above, or put the player in gamemode 3 and bind them to a living participating player. Having people fly around freely in spectator mode would allow to go through blocks, which is unwanted behaviour.
Putting a player in creative mode and making them invisible would still allow them to interact with other entities, for example pushing them off cliffs.