About server.properties
server.properties is the main settings file for a Java Edition server. Each line is one setting as key=value. Most changes need a server restart to take effect.
Settings that only affect new chunks, like level-seed and level-type, do nothing on an existing world. Delete or rename the world folder to generate a new one.
Frequently asked questions
Where is server.properties?
In the main server folder, next to the server jar. It's created the first time the server starts. Stop the server before editing it, or your changes may be overwritten.
What does online-mode do?
online-mode=true makes the server check every player's account with Mojang. Turning it off lets anyone join with any username, so only do it behind a proxy like Velocity that checks accounts itself.
What view-distance should I use?
8–10 suits most servers. Lower it to 6 on small or busy servers. Keep simulation-distance at or below view-distance; 6–8 is a good balance.
How do I make my server whitelist-only?
Set white-list=true and enforce-whitelist=true, then add players with /whitelist add <name>. The Friends SMP preset does this for you.
How do I change the server's name in the multiplayer list?
Edit motd. You can use § colour codes, such as §a for green; the generator escapes them correctly in the file.