Skip to content
/SLASHPLAY

How to force a game mode on join in Minecraft

Set force-gamemode=true in server.properties and restart the server. Players are put into the default game mode every time they join.

force-gamemode

Controls whether players are put into the default game mode every time they join.

force-gamemode=<value>

Examples

force-gamemode=true

Reset everyone's game mode on join.

Values

ValueWhat it does
true On
falseDefault Off

Arguments

valueRequired
The value to write after the equals sign.

What it does

When true, players switch back to the server's game mode on each join, even if an op changed their mode earlier. When false, players keep the mode they had when they left.

Good to know

  • Changes take effect after a server restart.

Run it on your server

On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.

Your own
Minecraft server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.