server.properties Explained: The Settings That Matter
What the main Minecraft server.properties lines do, with sensible values, and which settings moved to game rules.
December 5, 20266 min read
Where it is
server.properties sits at the root of your server. Edit it with the server stopped, then start it. You can also build one with the generator.
Gameplay
gamemode: survival, creative, adventure or spectator.difficulty: peaceful, easy, normal or hard.hardcore: one life per player.max-players: how many can be connected.allow-flight: set true if mods or plugins let players fly, to avoid wrong kicks.
Access
online-mode: keep true, it verifies accounts.white-listandenforce-whitelist: see the whitelist guide.motd: the text in the server list. Try the MOTD generator.
Performance
view-distance: chunks sent to players. 7 to 10 for most small servers.simulation-distance: chunks where things actually happen. 4 to 6 saves a lot of CPU.
Settings that moved
Since Java Edition 1.21.9, several former properties such as pvp are game rules set with the /gamerule command. If a line seems to do nothing, check your version's documentation.