Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

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 (Java Edition 12w22a)

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

Syntax
defaultgamemode <mode>
Arguments
mode
Specifies the default game mode for new players. Must be one of the following:
Result
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 that join the world will be put into the default game mode.
Examples
To set the default game mode to survival: defaultgamemode survival
See also
/gamemode – changes a player's game mode

History[edit]

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