MinecraftServers100

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

Players
Performance
World
Other

Your server.properties

Download

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

SettingDefaultWhat it does
motdA Minecraft ServerThe text under your server name in the multiplayer list. Use & colour codes; they are written as \u00A7 for you.
max-players20How many players can be online at once. Operators with bypassesPlayerLimit set in ops.json can still join when it is full.
gamemodesurvivalThe mode new players start in.
difficultyeasyPeaceful removes hostile mobs and hunger damage.
hardcorefalseHard difficulty, and players who die become spectators.
white-listfalseOnly players on the whitelist can join. Add them with /whitelist add name.
enforce-whitelistfalseKick online players who are not on the whitelist when it is reloaded.
online-modetrueChecks 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-distance10How 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-distance10How far from players mobs, crops and redstone keep running. Lower it before view distance if the server lags.
spawn-protection16Radius around spawn where only operators can build. 0 turns it off, which you want if a plugin protects spawn.
server-port25565The TCP port the server listens on. Hosts usually set this for you.
level-nameworldThe 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-typeminecraft:normalOnly used when the world is first created.
allow-flightfalseWhen 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-gamemodefalsePuts players back in the default game mode every time they join.
hide-online-playersfalseHides the list of player names in the server list. The player count still shows.
enable-statustrueWhen off, the server looks offline in the multiplayer list and on server lists like this one, but players can still join.
enforce-secure-profiletrueRequires 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-size29999984Maximum 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.