How to Change the Gamemode on Your Minecraft Server

Set the default gamemode, force it on everyone, or change one player's mode.

Set the default gamemode, force it on everyone, or change one player's mode.

Gamemode controls how players interact with the world: Survival for the normal game, Creative for building with unlimited blocks and flight, Adventure for maps where you can't break blocks, Spectator for flying through walls. You can set a server-wide default and override it per player.

Set the Default Gamemode

The default applies to anyone joining for the first time (and to everyone, if you force it).

Edit it in File Manager > server.properties:

gamemode=survival
force-gamemode=false

The quickest way is the panel's Server Configuration section on the Dashboard Server Configuration section Click Save Changes, and restart. No file editing needed.

Change Gamemode Live With Commands

You don't have to restart to switch modes in-game. As OP or from the console:

Command What it does
/gamemode creative Switches you to Creative
/gamemode survival Steve Sets player Steve to Survival
/gamemode adventure @a Sets everyone online to Adventure
/defaultgamemode creative Changes the default for new joins

Short forms also on some versions work too: /gamemode 0 (survival), 1 (creative), 2 (adventure), 3 (spectator).

Per-Player and Per-Rank Control

Want moderators in Creative but players stuck in Survival? Two ways:

Important Considerations

Conclusion

If you run into issues on MCServerHost, join our Discord server or contact us at support@mcserverhost.com.

Related guides

All community guides