server.properties explained: what to change, what to skip

The 26.3 server.properties defaults in one table, the settings hosted-server owners actually trip over, and the keys that moved out to game rules.

Omne TeamUpdated Nov 17, 20267 min read

Quick answer server.properties is read once, at startup, so every change needs a restart [1]. Most keys are fine as shipped. The ones that bite hosted-server owners are white-list (now true by default since 26.3), pause-when-empty-seconds (the server pauses after 60 seconds with nobody online), online-mode, simulation-distance, max-tick-time, and server-port, which a panel will overwrite for you. pvp, allow-nether, enable-command-block and spawn-monsters are gone from the file and live in game rules now [1][3].

How the file behaves on every start

The wiki describes server.properties as regenerated by the server software on startup: existing values are copied from the old file, comments are ignored (so yours are dropped), and any missing key or invalid value is set to the default [1]. Two consequences. A hand-written comment will not survive. And a server created before 26.3 should keep the white-list=false it already has, because an existing value is copied, not reset. We have not upgraded a real 26.2 server to confirm that, so after you update, open the file and check the line.

Edit it with the server stopped. The file is only read on startup, so editing it while the server runs changes nothing until the next restart [1].

The defaults on 26.3, and what each one costs you

These are the defaults in the wiki’s generated-file listing for 26.3 [1]. “Gotcha” is what goes wrong when you touch it.

Key Default What it controls Gotcha
view-distance 10 Chunks of world data sent to each client (radius) Radius, 3 to 32 chunks; separate from what the server simulates [1]
simulation-distance 10 How far from a player entities are updated (radius) The wiki’s advice if players have major lag is to lower it. See view-distance vs simulation-distance
max-players 20 Concurrent connection cap Cap on simultaneous players; an op with bypassesPlayerLimit set in ops.json can still join a full server [1]
difficulty easy Damage dealt by mobs, how hunger and poison affect players Values are peaceful, easy, normal, hard; an old numeric value is silently converted [1]
gamemode survival Default game mode Players rejoin in the mode they left unless force-gamemode=true [1]
online-mode true Checks players against Mojang accounts false lets fake accounts connect [1]
white-list true (since 26.3) Whether the whitelist is used New server with no ops rejects everyone [1][2]
enforce-whitelist false Kicks unlisted online players after a whitelist reload Does not turn the whitelist on
op-permission-level 4 Permission level given by /op Leave it at 4 unless you have a reason
spawn-protection 16 Protected square around spawn, 2x+1 wide 16 protects a 33x33 square; disabled if the server has no ops [1][5]
pause-when-empty-seconds 60 Seconds with no players before the server is paused Negative means never pause [1]
max-tick-time 60000 Milliseconds one tick may take before the watchdog stops the server -1 disables the watchdog [1]
network-compression-threshold 256 Packet size in bytes above which packets are compressed Leave it
enforce-secure-profile true Whether chat must carry a Mojang-signed key false stops requiring signed chat, so unsigned chat cannot be reported [1]
allow-flight false Whether survival players may fly with a mod Only matters for survival flight from mods; the wiki warns it makes griefing easier [1]
level-name world World folder name and path Wrong name generates a new world
motd A Minecraft Server Text in the server list Over 59 characters may give a communication error in the list [1]
server-port 25565 TCP port A panel rewrites this, see below

The full list has more keys than this. Everything else we left out is either rarely touched or covered by the wiki table [1].

The settings that surprise people on hosted servers

pause-when-empty-seconds: why your server “stops” at 3 am

Since 1.21.2 the server pauses when it has been empty for 60 seconds [1]. That is the default behavior. If you expect something to progress while nobody is on, it will not: the server is paused. We did not measure exactly which systems stop, so test the one you care about. Set the value negative to never pause [1].

max-tick-time: the watchdog that stops a stuck server

If one tick takes longer than max-tick-time (60000 ms by default), the watchdog stops the server with “A single server tick took 60.00 seconds (should be max 0.05); Considering it to be crashed, server will forcibly shutdown.” and exit code 1 [1]. Setting it to -1 removes the watchdog entirely. That hides a stuck server rather than fixing it, so we would leave it alone.

server-port, server-ip and query.port get overwritten

The community Paper egg for Pterodactyl declares a config parser for server.properties with three find entries: server-ip becomes 0.0.0.0, and server-port and query.port become the port allocated to the server [6]. So if you change server-port in the file, expect the panel to put it back at the next start. The same entry is in the Paper and vanilla egg seed files in our panel repository, but the live eggs are rows in the panel database, and we did not re-read them for this post. Change ports in the panel’s allocation instead.

online-mode=false, and why proxies need it

With online-mode=true, every connecting player is checked against Mojang’s account database. The wiki says to turn it off only when the server is not connected to the internet, because fake accounts can connect otherwise [1]. The exception people run into is a proxy: Paper’s Velocity guide tells you to disable online-mode on the backend server, because the proxy does the authenticating [7]. The guide does not say this, but it follows: a backend with online mode off trusts whatever connects to it, so it should only be reachable from the proxy.

white-list on a fresh server

Before 26.3 it shipped false. The 26.3 snapshot 2 changelog says “The white-list property is now true by default” [2], so a fresh server has the whitelist on and no ops, and rejects everyone until you add someone from the console. The fix is two console commands: whitelist add YourName and op YourName. Ops are automatically whitelisted, and enforce-whitelist only matters once you remove someone [1].

spawn-protection does nothing if you have no ops

The wiki defines the value as the side length of the protected square as 2x+1, so 16 protects a 33 by 33 area, and 0 disables it [1][5]. If the server has no ops, spawn protection does not apply [1][5]. Ops can bypass it [5].

Keys that left the file: pvp, allow-nether, enable-command-block, spawn-monsters

In 1.21.9 snapshot 25w35a, four properties were removed from server.properties and replaced by game rules [1]. Setting or changing pvp in the file now has no effect, so use the game rule. As of the current wiki, the rule names are pvp, allow_entering_nether_using_portals, command_blocks_work and spawn_monsters [3]. To turn off player-versus-player damage, run this in the console, where gamerule takes a rule name and an optional value [4]:

gamerule pvp false

Run gamerule pvp with no value to read the current setting [4]. Game rules live in the world, not in this file: the level format lists them in data/minecraft/game_rules.dat [8].

A worked example: ten friends on a survival server

You do not need to touch much. These are the three edits we would make, in order:

  1. simulation-distance=8. This is the first lever for CPU, and the starting value in our view-distance and simulation-distance table for 1 to 10 players. Treat it as a starting value that we have not benchmarked.
  2. enforce-whitelist=true, so removing someone from a private server actually removes them.
  3. max-players=10. Set the cap to the group you are sizing for.

Leave view-distance, network-compression-threshold and online-mode alone. Restart, then read the first lines of the console log to make sure the server picked up the values: you should see the line containing )! For help, type, which is the text the Paper egg waits for to mark the server as started [6]. Our host evaluation post covers what else to check before sizing a plan around the player count.

What we did not check

We read the wiki’s 26.3 listing and Mojang’s changelog on 2026-11-17 and did not run a server for this update. The wiki marks allowed-connection-ids, enable-legacy-status and status-contact-details as arriving in 26.4 snapshots [1]. They are not in 26.3, so we have left them out. Re-check this post when 26.4 ships.

Questions people ask

Do I need to edit server.properties by hand?

Not always. Many panels have form fields for the common keys. But on a Pterodactyl-style panel the egg rewrites server-ip, server-port and query.port when the server starts, so changing those in the file will not stick.

Is white-list on by default?

Since Java 26.3, yes: white-list defaults to true. Up to 26.2 it shipped as false. An existing file that already says white-list=false should keep that value, because the server copies existing values when it rewrites the file.

Why does changing pvp in my server.properties do nothing?

pvp is no longer a server.properties key. It, allow-nether, enable-command-block and spawn-monsters were replaced by game rules in the 1.21.9 snapshots, so changing it in the file has no effect. Use /gamerule pvp false instead.

My server stops when nobody is online. Is it crashing?

Probably not. pause-when-empty-seconds defaults to 60, and after that many seconds with no players the server is paused. Set it to a negative number to never pause.

Sources

  1. Server.properties (Minecraft Wiki)
  2. Minecraft Java Edition 26.3 Snapshot 2 (minecraft.net)
  3. Game rule (Minecraft Wiki)
  4. Commands/gamerule (Minecraft Wiki)
  5. Spawn protection (Minecraft Wiki)
  6. pterodactyl/game-eggs: Paper egg (egg-paper.json)
  7. PaperMC docs: Velocity player information forwarding
  8. Java Edition level format (Minecraft Wiki)