Commands/defaultgamemode

From Minecraft Wiki
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Java Edition.
defaultgamemode
Restrictions

Operator

First introduced

Java Edition 1.3.1 (12w22a)

Sets the default game mode (creative, survival, etc.) for new players entering a multiplayer server.

Syntax[edit]

defaultgamemode <mode>

Arguments[edit]

<mode>

Specifies the default game mode for new players. Must be one of the following:

Result[edit]

Fails if the arguments are not specified correctly.

If successful, sets the default game mode that is shown on the world selection menu. New players who join the world are put into the default game mode.

Examples[edit]

  • To set the default game mode to survival: defaultgamemode survival

See also[edit]

/gamemode – changes a player's game mode

History[edit]

Java Edition
1.3.112w22aAdded /defaultgamemode.
1.814w05aAdded spectator to /defaultgamemode.