Applies the default game mode whenever a player joins, useful when someone previously logged out in Creative mode.
On this page 6 sections
At a glance
Default — false
-
Line in a file
force-gamemode=false
Restore the mode on login. By default — false.
| What | Value |
|---|---|
| Key | force-gamemode |
| By default | false |
| Type | true or false |
| Without restart | can — through the management protocol |
- Stop the server and open server.properties — it's located next to the server JAR file.
- Find the line
force-gamemode=and enter your value — true or false. - Save the file and start the server: settings are read at startup.
This setting can be changed without restarting — via the management server protocol (management-server-enabled). To compile the entire file with ready-made sets — in server.properties editor..
What does force-gamemode mean in server.properties?
Applies the default game mode whenever a player joins, useful when someone previously logged out in Creative mode.
What is the default value of force-gamemode?
false — the server Minecraft 26.3 automatically writes this value.
Do you need to restart the server after changing force-gamemode?
The server reads a file on startup — fix the line and restart it. This setting can be changed in real time via the management protocol.
- allow-flight
- difficulty
- function-permission-level
- gamemode
- hardcore
- op-permission-level
- player-idle-timeout
- spawn-protection
All server.properties settings server.properties generator
Data from Minecraft 26.3: Launcher manifest from Mojang, version.json inside each client version, and server.properties, which the server itself creates.