server.properties sits in the server root. Stop the server, edit it in the Files section, start again. The entries you will actually touch:
| Key | What it does | Typical |
|---|---|---|
motd | Text in the server list. Colours with § codes or use a plugin. | A Minecraft Server |
max-players | Player limit. We do not limit it; RAM does. | 20 |
gamemode | survival, creative, adventure, spectator | survival |
difficulty | peaceful, easy, normal, hard | normal |
hardcore | One life. Combine with difficulty hard. | false |
white-list | Only listed players may join. Manage with /whitelist. | false |
online-mode | Verify accounts with Mojang. Keep true unless behind a proxy. | true |
view-distance | Chunks sent to players. Biggest performance lever. | 8 |
simulation-distance | Chunks that tick (mobs, crops). | 6 |
spawn-protection | Radius non-ops cannot build in around spawn. 0 disables. | 16 |
level-name | World folder name | world |
level-seed | Seed for a new world; ignored once the world exists | empty |
level-type | minecraft:normal, minecraft:flat, minecraft:large_biomes, minecraft:amplified | minecraft:normal |
allow-flight | Set true if you use elytra/fly plugins to avoid false kicks | false |
enforce-secure-profile | Chat signing. false avoids some proxy issues. | true |
server-port | Do not change. It is set to your port on every start. | set automatically |
PvP, command blocks, Nether and monsters are game rules now
Java Edition 1.21.9 removed pvp, enable-command-block, allow-nether and spawn-monsters from server.properties and turned them into game rules. On 1.21.9 and newer, editing those lines changes nothing. Set them in the console instead. A game rule takes effect immediately, no restart needed, and is saved with the world.
| Setting | Up to 1.21.8 (server.properties) | 1.21.9 and 1.21.10 | 1.21.11 and newer | Default since 1.21.9 |
|---|---|---|---|---|
| PvP | pvp | /gamerule pvp false | /gamerule pvp false | true |
| Command blocks | enable-command-block | /gamerule commandBlocksEnabled false | /gamerule command_blocks_work false | true |
| Nether portals | allow-nether | /gamerule allowEnteringNetherUsingPortals false | /gamerule allow_entering_nether_using_portals false | true |
| Monsters spawn | spawn-monsters | /gamerule spawnMonsters false | /gamerule spawn_monsters false | true |
- Command blocks are on by default since 1.21.9. Before,
enable-command-blockwasfalse. Turn them off with the command above if you do not want them. - Not sure of the name on your version? Type
/gamerulein the console and let tab completion list them./gamerule pvpwithout a value shows the current setting. - On 1.21.8 and older the
server.propertieslines still apply as before.
Things people ask
- Where is the seed?
/seedin the console, or inlevel.dat. - Players get kicked for flying while using elytra or a jetpack mod:
allow-flight=true. - "Outdated server" on join: version mismatch. See Change the version.
Still stuck?
Kowalski, the assistant in your dashboard, reads your server's log and fixes most things on request. For everything else there is the ticket system.
