
Command
/defaultgamemode
Sets the game mode that players get when they join the world for the first time.
| /defaultgamemode <gamemode> |
| Argument | Kind of value | What to type |
|---|---|---|
| <gamemode> | Game mode | The new default: survival, creative, adventure, or spectator. |
| Permission level | 2: operators, worlds with cheats on, command blocks and functions |
| Works in | Singleplayer with cheats enabled and multiplayer servers. Needs permission level 2 (gamemasters): server operators, players with cheats, command blocks, and functions can all run it. |
| Result | Reports "The default game mode is now" followed by the mode. The number /execute store saves is the number of online players whose game mode was changed, which is 0 unless the server forces the default game mode. |
| Existing players | Players who are already in the world keep their current game mode. Use /gamemode to change them. |
| Forced game mode | If the server is set to force the default game mode, all online players are switched to the new mode right away. |
/defaultgamemode creativeNew players start in Creative mode.
/defaultgamemode adventureNew players start in Adventure mode.
/defaultgamemode survivalNew players start in Survival mode.

