server.properties explained

Every line that matters in server.properties, what it does, and the values most servers should use.

2 min readDiese Anleitung auf Deutsch lesen

On this page 2
  1. PvP, command blocks, Nether and monsters are game rules now
  2. Things people ask

server.properties sits in the server root. Stop the server, edit it in the Files section, start again. The entries you will actually touch:

KeyWhat it doesTypical
motdText in the server list. Colours with § codes or use a plugin.A Minecraft Server
max-playersPlayer limit. We do not limit it; RAM does.20
gamemodesurvival, creative, adventure, spectatorsurvival
difficultypeaceful, easy, normal, hardnormal
hardcoreOne life. Combine with difficulty hard.false
white-listOnly listed players may join. Manage with /whitelist.false
online-modeVerify accounts with Mojang. Keep true unless behind a proxy.true
view-distanceChunks sent to players. Biggest performance lever.8
simulation-distanceChunks that tick (mobs, crops).6
spawn-protectionRadius non-ops cannot build in around spawn. 0 disables.16
level-nameWorld folder nameworld
level-seedSeed for a new world; ignored once the world existsempty
level-typeminecraft:normal, minecraft:flat, minecraft:large_biomes, minecraft:amplifiedminecraft:normal
allow-flightSet true if you use elytra/fly plugins to avoid false kicksfalse
enforce-secure-profileChat signing. false avoids some proxy issues.true
server-portDo 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.

SettingUp to 1.21.8 (server.properties)1.21.9 and 1.21.101.21.11 and newerDefault since 1.21.9
PvPpvp/gamerule pvp false/gamerule pvp falsetrue
Command blocksenable-command-block/gamerule commandBlocksEnabled false/gamerule command_blocks_work falsetrue
Nether portalsallow-nether/gamerule allowEnteringNetherUsingPortals false/gamerule allow_entering_nether_using_portals falsetrue
Monsters spawnspawn-monsters/gamerule spawnMonsters false/gamerule spawn_monsters falsetrue
  • Command blocks are on by default since 1.21.9. Before, enable-command-block was false. Turn them off with the command above if you do not want them.
  • Not sure of the name on your version? Type /gamerule in the console and let tab completion list them. /gamerule pvp without a value shows the current setting.
  • On 1.21.8 and older the server.properties lines still apply as before.

Things people ask

  • Where is the seed? /seed in the console, or in level.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.