server.properties is the main settings file for every Minecraft Java server. It is in your server's main (root) folder.
server.properties. You can also edit it over SFTP.setting=value, with no spaces around the =.| Setting | Default | What it does |
|---|---|---|
motd | A Minecraft Server | The message under your server name in the server list |
max-players | 20 | How many players can be online at once |
gamemode | survival | Default game mode: survival, creative, adventure or spectator |
force-gamemode | false | If true, players are put in the default game mode every time they join |
difficulty | easy | peaceful, easy, normal or hard |
hardcore | false | One life only. Set this before the world is created |
white-list | false | Only players on the whitelist can join |
level-name | world | The name of the world folder the server loads |
level-seed | (blank) | The seed for new worlds. Blank means random |
view-distance | 10 | How far (in chunks) players can see |
simulation-distance | 10 | How far (in chunks) mobs, crops and redstone keep working |
spawn-protection | 16 | Radius around spawn where only ops can build. 0 turns it off |
enable-command-block | false | Older releases only; see command blocks for the game rules used since 1.21.9 |
online-mode | true | Checks that players own Minecraft. Keep this true |
allow-flight | false | Stops the anti-cheat kicking players who fly with mods or plugins |
server-port | Set by the panel | Do not change. The panel assigns this |
Settings that moved. On newer Minecraft versions some settings, like PvP, moved from server.properties to game rules. If a setting from an old guide doesn't seem to work, check the game rules with /gamerule in the console.
Typos break things quietly. A misspelled value is usually ignored, and the server uses the default. If a change doesn't seem to work, check the spelling and restart.