Minecraft server.properties Explained: the Settings That Matter
server.properties is the file where a Minecraft server keeps its basic configuration. Almost everything people ask (“how do I allow more players?”, “how do I turn off PvP?”) is in there.
Where it is and how to edit it
On NapNodes you have every option in “Settings”, explained, grouped by topic and with a search box: they save themselves and apply on restart. To prepare it on your PC, the server.properties editor does it in your browser. If you'd rather use the file:
Open it
In the panel, “Files” and the server.properties file, in the server's main folder. It's created the first time the server starts.
Change only the value
Each line is option=value, with no spaces. Don't delete lines or change the option's name.
Save and restart
The server reads the file when it starts: changes don't apply until you restart it. If the server is online when you save, some versions overwrite the file when shutting down, so the safest thing is to stop it, edit and start it.
Rather not set it up yourself? Minecraft servers from €6 a month, no contract and a full refund within 72 hours. Or create a free Minecraft server, no card needed.
The options people change most
motd: the text shown under the name in the server list. It accepts colour codes; if you go over about 59 characters, the list can show a communication error.
max-players: how many players fit at once. More players use more RAM and CPU: raise it sensibly.
difficulty: peaceful, easy, normal or hard. gamemode: survival, creative, adventure or spectator for people joining for the first time.
pvp: since Minecraft 1.21.9 it's no longer here, and neither are allow-nether, spawn-monsters and enable-command-block. They're game rules: with the server online, gamerule pvp false in the console turns PvP off. If your file still has pvp=false, it does nothing.
white-list and enforce-whitelist: so only people on your list can join (the commands are in the admin commands guide). enforce-whitelist=true kicks anyone not on the list when you turn it on. Note: since 26.3, a new server starts with white-list=true (what changed).
level-seed: the world seed. It only counts when creating a new world; in one that's already generated it changes nothing.
spawn-protection: radius, in blocks, around the spawn point where only operators can build. Setting it to 0 turns it off (spawn and its protection, step by step).
The ones that affect performance
view-distance: how many chunks are sent to each player. It's the option that weighs most: lowering it from 10 to 8 is usually more noticeable than adding 2 GB of RAM. simulation-distance: how far mobs and crops are simulated; lowering it to 6 lightens the server a lot without looking bad.
If you have lag, those two options are the first thing to change; the rest is in the lag guide.
online-mode: the one you shouldn't touch
online-mode=true makes the server check every account with Mojang. With false, anyone can join with any name, including yours (and therefore with your op permissions). Only turn it off behind a properly configured proxy, such as Velocity, which already checks accounts on its side. You don't need to touch it to let Bedrock players in: that's done with Geyser and Floodgate (Java and Bedrock together guide). What breaks when you turn it off, in cracked server.
Frequently asked questions
Where is server.properties?
In the server's main folder. In the panel, go to “Files” and open it from there.
Do I need to restart for the changes to apply?
Yes. The server reads server.properties when it starts. The safest thing is to stop it, edit the file and start it again.
Why doesn't the world change when I change the seed?
level-seed is only used when generating a new world. A world that's already created keeps its own; to try a different one, you need a new world.
Is it safe to set online-mode=false?
No, except behind a proxy such as Velocity that already verifies accounts. Otherwise, anyone can join with your name and inherit your permissions.
Shall we set it up for you?
Minecraft servers from €6 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Minecraft server, no card needed.
Your server doesn't show up in the game? Check it in a second with “Is my Minecraft server online?”: players, version and MOTD, free. Need a player's UUID for the whitelist or permissions? Look it up here. Handing out enchanted items? Build the command with the /give generator.
Rather not edit the file by hand? Use the server.properties editor: every option explained, with a warning on the ones that no longer work.
Free tool: Gamerules generator. Pick the rules and copy the commands, or paste old ones (keepInventory, doFireTick…) and convert them to the 1.21.11 names.
Free tool: Superflat generator. Pick layers, biome and structures (or one of the game's presets) and get the server.properties lines for a superflat world.
Keep reading
- Minecraft Server MOTD and Icon: How to Set Them
Change your Minecraft server's message (MOTD) and icon: colours with §, two lines, the 64×64 server-icon.png and why sometimes it doesn't show up.
- Cracked Minecraft Server (online-mode=false): What It Is, the Risks and How to Protect It with AuthMe
What happens with online-mode=false: anyone can join with your name, UUIDs change and skins vanish. How to protect it with AuthMe, and the alternatives.
- How to Move Your Minecraft World to a Server (or Switch Hosts)
Upload your singleplayer world or bring your server from another host without losing it: where the folder is, level.dat, level-name and the steps.