PlayersJava
/defaultgamemode
Sets the game mode applied to players the first time they join the world. Unlike /gamemode (which changes a current player), this affects future joins and the world's default — handy for adventure maps and servers.
Syntax
Parameters
- mode
- literal
- survival, creative, adventure, or spectator.
Examples
New players join in Adventure mode.
Permission level
/defaultgamemode requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.