Guide · Configuration

server.properties explained: the settings that matter

server.properties is the main configuration file of every Java Edition server. It has around seventy keys, but only a dozen or so matter to most owners. This guide covers those, plus the change in recent versions that moved several settings out of the file.

How to edit it without losing changes

The file sits in the server's root folder. Stop the server before editing it: a running server can write its own copy back on shutdown and overwrite what you changed. Edit, save, then start the server again. On StormNodes, open it from the File Manager, which saves straight to the server.

Keys are written as key=value with no spaces around the equals sign. True and false are lowercase.

Settings worth changing

These are the keys owners change most, with what they do:

  • motd: the text under your server name in the multiplayer list
  • max-players: the player cap shown to clients
  • difficulty and gamemode: peaceful, easy, normal, hard; survival, creative, adventure, spectator
  • white-list and enforce-whitelist: restrict joining to listed players
  • view-distance and simulation-distance: the two biggest performance levers
  • online-mode: keep true unless the server sits behind a proxy that authenticates players
  • spawn-protection: radius around spawn that non-operators cannot edit
  • level-name and level-seed: which world folder to load, and the seed for new worlds
  • allow-flight: whether players flying without permission get kicked
  • hardcore: one life, then spectator mode

Settings that are now game rules

Minecraft 1.21.9 removed pvp, allow-nether, spawn-monsters and enable-command-block from server.properties and turned them into game rules. If you run 1.21.9 or newer and those keys are missing, that is expected. Change them with the /gamerule command instead; in 1.21.11 and newer the names are minecraft:pvp, minecraft:allow_entering_nether_using_portals, minecraft:spawn_monsters and minecraft:command_blocks_work.

Game rules are stored in the world rather than in server.properties, so they stay with the world if you move it to another server.

Settings most people should leave alone

server-ip should normally be empty; filling it in with the wrong address stops the server binding to its port. network-compression-threshold, max-tick-time, rate-limit and the management-server keys are for specific situations. If a guide tells you to change them, make sure you understand why first.

server-port on a hosted server must match the port the host assigned. Changing it in the file alone will make the server unreachable.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Why do my server.properties changes keep resetting?
You edited the file while the server was running, and it wrote its own copy back on shutdown. Stop the server first, edit, save, and start it again.
Where is the pvp setting in server.properties?
On Minecraft 1.21.9 and newer, pvp is a game rule rather than a server.properties key. Use /gamerule pvp false, or /gamerule minecraft:pvp false on 1.21.11 and newer.
Do I need to restart after changing server.properties?
Yes. The server reads the file when it starts, so changes only apply after a restart.