server.properties Explained: Every Setting That Actually Matters
If you've opened server.properties and been hit with 60-odd lines of key=value, you're not alone. Most of it you'll never touch, but a handful of settings decide how your server plays, how it performs, and who can join. This is a simple reference to the ones that actually matter, what safe values look like, and where to change them.
Where the file lives and how to edit it
server.properties sits in your server's root folder, next to eula.txt and the world folder. Each line is a key=value pair. Comments start with #.
On FreaksMC you don't need SFTP or a text editor on your PC - open the panel file manager, click server.properties, edit it right in the browser, save, and restart the server. Almost nothing here applies live; a restart is what loads your changes.
One rule that trips people up: values are case-sensitive and there are no quotes. pvp=true works, PVP=True does not.
Gameplay settings
These shape the actual game your players experience.
gamemode- default mode for new players.survival,creative,adventure, orspectator. Most servers usesurvival.force-gamemode- iftrue, players are reset to the default gamemode every time they join. Leavefalseunless you have a reason.difficulty-peaceful,easy,normal, orhard.peacefuldisables hostile mobs entirely.normalis the usual pick.hardcore- iftrue, difficulty locks to hard and death bans the player to spectator. Only turn on for a dedicated hardcore world.pvp-truelets players damage each other. Setfalsefor co-op or peaceful builds.allow-nether-trueby default. Setfalseto disable the Nether entirely.spawn-monsters-trueto allow hostile mob spawning. Note this is separate from difficulty.level-seed- the world seed. Leave blank for a random world, or paste a seed to generate a specific one. Only affects a brand-new world; it does nothing once the world exists.level-type- world generation type, likeminecraft:normal,minecraft:flat, orminecraft:large_biomes.
Player and access settings
max-players- how many players can be online at once. This is a slot limit, not a performance limit; more players still need more RAM and CPU. A common starting point is10to20.white-list- settrueto only let approved players in. Add names with/whitelist add <name>in the console. This is the single best way to keep randoms out.enforce-whitelist- iftrue, kicks anyone not on the whitelist the moment you enable it, even if they're already online.online-mode- keep thistrue. It verifies every player against Mojang/Microsoft auth. Setting itfalse(offline mode) lets anyone join under any username, including impersonating your ops, and is a real security risk. The main legit reason to setfalseis running behind a proxy like Velocity that handles auth for you.spawn-protection- radius in blocks around spawn where non-ops can't build or break. Default is16. Set0to disable it (handy for survival servers where spawn is a build area).op-permission-level-1to4, how much power ops get.4is full access and the usual value.
Performance settings
These two do the heavy lifting for lag, and each has its own deeper guide, but here's the short version.
view-distance- how many chunks the server sends to clients. Higher means players see farther but the server does more work.10is the default;6to8is a safe range for busy servers.simulation-distance- how many chunks around each player actually tick (mobs, crops, redstone). This is usually the bigger performance cost. Default10; dropping to6or8can noticeably improve TPS with little visible downside.
Set both conservatively if you have lots of players or limited RAM, then raise them if performance is fine.
Presentation and network settings
motd- the "message of the day" shown under your server name in the multiplayer list. Supports color codes. Example:motd=Welcome to our SMP!server-port- default25565. On a host you generally leave this alone; your provider gives you the real address.enable-command-block-trueto allow command blocks. Off by default.allow-flight- settrueif you use plugins/mods that grant flight, or anti-cheat will kick flying players.resource-pack- a direct URL to a server resource pack, withrequire-resource-pack=trueto force it.
Settings you can usually ignore
network-compression-threshold, rate-limit, sync-chunk-writes, max-tick-time, and most of the query/rcon block have sensible defaults. Don't change them unless a specific guide tells you to.
A quick sane starter config
gamemode=survival
difficulty=normal
pvp=true
max-players=20
view-distance=8
simulation-distance=8
spawn-protection=0
online-mode=true
white-list=true
motd=Welcome to the server!
Edit, save, restart, done.
Edit server.properties without the hassle
Every FreaksMC plan includes our full custom panel, so you can edit server.properties in the file manager and restart with one click - no SFTP required. Plans start at $3/mo with a 24-hour money-back guarantee.
See plansWant a server that just runs fast?
FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.
See plans from $3/mo