Minecraft wiki entry for Multiplayer, associated text: "Game Mode", which sets the gamemode of other players once they join the world for the first time. Once a player rejoins, they retain their previous gamemode even if the gamemode on join was changed.