01
Where the file is and how to edit it
server.properties is at the root of the server, next to the .jar file. It is created on first start, with the default values. Each line has the form setting=value.
- stop the server before editing the file, or at least restart it afterwards: changes are only read at startup;
- don't put spaces around the
= sign;
- keep a copy of the file before making big changes.
02
The server in the players' list
motd: the text shown under the server name in the multiplayer list. It accepts colour codes; our MOTD generator saves you writing them by hand;
max-players: the maximum number of players connected at the same time (20 by default);
server-port: the server port, 25565 by default. With this port, players don't need to add it to the address;
enable-status: whether the server shows as online in the list.
03
The game: mode, difficulty, world
gamemode: survival, creative, adventure or spectator, the mode for new players;
force-gamemode: resets that mode on every connection;
difficulty: peaceful, easy (default), normal or hard;
hardcore: one life only, dead players become spectators;
pvp: whether players can fight each other;
level-name: the world folder. Change it to start a new world without deleting the old one;
level-seed: the world seed, only used when a new world is created;
spawn-protection: the radius around the spawn point where only operators can build (16 by default, 0 to disable it);
allow-flight: set it to true if mods or plugins make players fly, otherwise the server kicks them for flying.
04
Who can join: whitelist and online-mode
white-list: only accepts players on the whitelist;
enforce-whitelist: kicks players not on the list when it is reloaded;
online-mode: checks that each player has a real Minecraft account. Leave it at true: at false, anyone can take someone else's username, including an operator's. The only exception is a server behind a proxy such as Velocity, which does the check itself;
op-permission-level: the level of power given to operators, from 1 to 4.
Day-to-day management of the whitelist and operators is covered in the Minecraft admin commands guide.
05
The settings that weigh on performance
view-distance: the distance, in chunks, the server sends to players (10 by default). It is the setting that weighs most: lowering it to 8 clearly lightens a busy server;
simulation-distance: the distance at which the world "lives" (crops, mobs, redstone). Lower, it relieves the processor;
max-world-size: limits the world size, useful to bound exploration and disk space;
network-compression-threshold: the size from which packets are compressed. The default value is almost always right.
If the server still lags, the how much RAM for a Minecraft server guide helps check the memory, and a Paper server computes the world more efficiently than the official server.
06
RCON and query
enable-rcon, rcon.port and rcon.password: the remote console, to send commands from an external tool. Only enable it with a long, unique password, and only if you need it;
enable-query and query.port: let ranking sites and tools read the server status (connected players, version).
07
server.properties at CloudFive
On our Minecraft plans, server properties are set from the server page, translated, without editing the file by hand; so are the whitelist and operators. The server runs on Ryzen 9 9950X, one of the fastest processors per core, with automatic backups and Anti-DDoS Premium.
08
Frequently asked questions
Where is the server.properties file?
At the root of the Minecraft server, next to the .jar file. It is created the first time the server starts.
Why don't my changes in server.properties work?
The file is only read at startup: restart the server. Also check there is no space around the = sign, and that the server didn't rewrite the file when stopping after your change.
Which view-distance should I set on a Minecraft server?
10 by default. On a busy server, 8 clearly lightens the processor and memory without bothering players much.
Should I set online-mode to false?
No: without account checks, anyone can take another player's username, including an operator's. The only exception is a server behind a proxy such as Velocity, which checks accounts itself.