server.properties generator
Pick your settings and copy a ready server.properties, with a plain explanation of every option.
Start from your current server.properties
Your server.properties
Stop the server, replace these lines in server.properties and start it again. Settings that aren't in this list keep their current value.
What every setting means
| Setting | Default | What it does |
|---|---|---|
motd | A Minecraft Server | The text under your server name in the multiplayer list. Use & colour codes; they are written as \u00A7 for you. |
max-players | 20 | How many players can be online at once. Operators with bypassesPlayerLimit set in ops.json can still join when it is full. |
gamemode | survival | The mode new players start in. |
difficulty | easy | Peaceful removes hostile mobs and hunger damage. |
hardcore | false | Hard difficulty, and players who die become spectators. |
white-list | false | Only players on the whitelist can join. Add them with /whitelist add name. |
enforce-whitelist | false | Kick online players who are not on the whitelist when it is reloaded. |
online-mode | true | Checks every player against Mojang's account servers. Only turn it off behind a Velocity or BungeeCord proxy that does the check; otherwise anyone can join with any name. |
view-distance | 10 | How many chunks around each player are sent to them. The biggest single factor in RAM and CPU use; 6 to 8 is plenty for most servers. |
simulation-distance | 10 | How far from players mobs, crops and redstone keep running. Lower it before view distance if the server lags. |
spawn-protection | 16 | Radius around spawn where only operators can build. 0 turns it off, which you want if a plugin protects spawn. |
server-port | 25565 | The TCP port the server listens on. Hosts usually set this for you. |
level-name | world | The folder the world is saved in. Change it to load another world. |
level-seed | (empty) | Only used when the world is first created. Leave empty for a random seed. |
level-type | minecraft:normal | Only used when the world is first created. |
allow-flight | false | When off, players who seem to fly in survival are kicked. Turn it on if you use plugins that let players fly, or if players get kicked for lag. |
force-gamemode | false | Puts players back in the default game mode every time they join. |
hide-online-players | false | Hides the list of player names in the server list. The player count still shows. |
enable-status | true | When off, the server looks offline in the multiplayer list and on server lists like this one, but players can still join. |
enforce-secure-profile | true | Requires players to connect with a Mojang-signed profile key, which signed chat uses. If players can't join, read the login error before turning this off. |
max-world-size | 29999984 | Maximum distance from the centre in blocks. A world border plugin or /worldborder is easier to manage. |
PvP, the Nether, monsters and command blocks
Since Minecraft 1.21.9 these are no longer in server.properties: pvp, allow-nether, spawn-monsters and enable-command-block became game rules, which you change in game with /gamerule while the server runs. Game rule names changed again in 1.21.11, so type /gamerule and let tab completion show the names your version uses. On versions before 1.21.9 they are still lines in this file, and you can add them by hand.
Lag tips
Lower simulation-distance to 6 or 8 first; it saves CPU without changing what players see. Then lower view-distance if you need to. Paper and Purpur have many more performance settings in their own config files.