In short
server.properties is the main config file of a Minecraft Java server and sits in the root of the server folder, next to the jar file. view-distance and simulation-distance have the biggest impact on performance; online-mode, white-list, and enforce-secure-profile control security; difficulty, gamemode, pvp, and spawn-protection shape gameplay. Changes to the file take effect when the server restarts.
In this guide
server.properties is the main configuration file of a Minecraft Java Edition server. It is created automatically in the root folder the first time the server runs, and every line uses the key=value format. Changes to this file take effect when the server restarts. Below we first explain the critical lines that directly affect performance and security, then cover all the other settings in a table.
Before you edit the file
- Stop the server, edit the file, then start it again. Changes saved while the server is running can be overwritten when it shuts down.
- Don't put spaces around values:
view-distance=8is correct,view-distance = 8is wrong. - Make a copy of the file before editing it.
- Server software like Paper and Purpur keeps its extra settings in
bukkit.yml,spigot.yml, and the files in theconfigfolder;server.propertiesis still the core file.
Lines that control performance
view-distance
The radius of chunks the server sends to each player (default 10). With a value of 10, a 21×21 chunk area around the player is loaded and sent. This line directly affects both RAM and network traffic. On busy or modded servers, 6-8 is a good balance; on the player's side, the client's render distance setting also applies.
simulation-distance
The chunk radius around a player where entities move, crops grow, and redstone runs (default 10). This is the line that really drives tick load. Keeping view-distance high while lowering simulation-distance to 5-6 lets players keep seeing far while noticeably cutting CPU load. If you have lag, this is the first place to look; for more, see our Minecraft server lag fix guide.
entity-broadcast-range-percentage
Sets, as a percentage, the distance at which entities are sent to players (default 100). On mob-heavy servers, 75-80 reduces network load.
network-compression-threshold
Packets larger than this many bytes are compressed (default 256). -1 turns compression off. On backend servers behind a proxy like Velocity, the proxy usually handles compression; if you run a single server, leave the default.
sync-chunk-writes
When true, chunk saves are written synchronously; data safety improves, but disk writes can hold up the tick. On servers with NVMe drives, the default value usually causes no problems.
Security and access lines
online-mode
When true (default), every player's account is verified against the Mojang/Microsoft session servers. Setting it to false lets unlicensed (cracked) clients join, but anyone can then join with any username, even an admin's. If you run an offline-mode server, always use a login plugin: we explain how in our AuthMe setup guide. On backend servers behind Velocity, false is correct, because the proxy handles authentication.
white-list and enforce-whitelist
white-list=true only lets players on the list join. enforce-whitelist=true also kicks online players who are not on the list when the list is reloaded. For details, see our how to enable the Minecraft whitelist guide.
enforce-secure-profile
When true, only players with a Mojang-signed public key can connect, and chat messages are signed. On offline-mode servers or some proxy setups, it needs to be set to false.
enable-rcon, rcon.port, rcon.password
RCON lets you send commands to the console remotely (default port 25575). Keep it off unless you really need it; if you turn it on, use a long, random password.
op-permission-level
The permission level of a player given /op (1-4, default 4). Level 4 allows every command, including stopping the server. For detailed rank management, use a permissions plugin like LuckPerms instead of op.
spawn-protection
The radius around the spawn point where non-op players can't break or place blocks (default 16). 0 turns protection off. This protection does not kick in if there are no ops on the server. If you use a region plugin like WorldGuard, setting it to 0 prevents conflicts.
Gameplay lines
- difficulty:
peaceful,easy(default),normal,hard. Survival communities usually picknormalorhard. It can also be changed in-game with/difficulty. - gamemode: The game mode for new players:
survival,creative,adventure,spectator.force-gamemode=trueenforces this mode on every join. - hardcore: If
true, players who die switch to spectator mode and difficulty is locked at the highest level. - pvp: Whether players can damage each other.
- allow-flight: When
false, survival players detected flying are kicked. Set it totrueto avoid unfair kicks with plugins or mods that grant flight. - allow-nether: Turns the Nether dimension on or off.
- max-players: The concurrent player limit (default
20). This value only sets the join cap, not how many players your hardware can handle. - player-idle-timeout: AFK kick time in minutes;
0turns it off. - motd: The description text shown in the server list. You can use the
\u00A7escape sequence for color codes.
World generation lines
- level-name: The name of the world folder (default
world). To switch to another map, change this value to the new folder name. - level-seed: The world seed; it only has an effect when the world is first created.
- level-type:
minecraft\:normal,minecraft\:flat,minecraft\:large_biomes,minecraft\:amplified. In the file, the colon is preceded by a backslash. - generate-structures: Whether structures like villages and strongholds generate.
- max-world-size: The radius of the world border (in blocks). An unlimited map increases disk and RAM usage; setting a reasonable limit makes the server easier to manage.
Network and other settings (quick table)
| Line | Default | What it does |
|---|---|---|
server-port | 25565 | The port players connect to. On managed game panels, the port is assigned by the panel; don't change it manually. |
server-ip | empty | The IP the server listens on. Leaving it empty listens on all interfaces. |
enable-query / query.port | false / 25565 | GameSpy4 query that lets server list sites pull player info. |
enable-status | true | Whether the server shows as online in the server list. |
hide-online-players | false | Hides player names in the server list. |
enable-command-block | false | Enables command blocks. |
max-tick-time | 60000 | If a single tick takes longer than this many milliseconds, the watchdog stops the server. -1 disables it. |
rate-limit | 0 | Packets-per-second limit per player; 0 means unlimited. |
prevent-proxy-connections | false | Tries to block connections coming through a VPN/proxy. |
resource-pack / require-resource-pack | empty / false | Sets a server resource pack via a direct download link and makes it required. |
log-ips | true | Writes player IPs to the log. |
For the official, version-by-version list of every line, see the Minecraft Wiki server.properties page.
Ready-to-use starter settings
A safe, lightweight starting point for a small server with friends:
view-distance=8
simulation-distance=6
online-mode=true
white-list=true
enforce-whitelist=true
difficulty=normal
spawn-protection=0
max-players=10
allow-flight=false
With this setup, the whitelist is on, so even if the server address gets around, only the players you add can join; spawn-protection=0 lets your friends build freely around spawn too. Keeping difficulty at normal preserves the survival experience, but if your group is new to the game, you can start on easy and raise it later in-game.
On a public survival server with 20 or more players, keeping view-distance around 7-8 and simulation-distance around 5-6, and pre-generating the map, takes pressure off the CPU.
Common server.properties mistakes
- Editing the file while the server is running: The server may write its in-memory values back to the file on shutdown, and your change is lost. Always stop it first.
- MOTD with non-ASCII characters (such as Turkish letters): Because of the file encoding, letters like ç, ş, and ğ can show up garbled in the server list. In that case, write the characters as Unicode escape sequences like
\u00E7, or manage the MOTD with a plugin. - Changing the port manually: On managed game panels, the port is assigned by the panel. If you change
server-port, the server will start but won't be reachable from outside. - Changing level-seed later: The seed only affects newly created worlds. In an existing world, only unexplored chunks are generated with the new seed, which creates visible seams at the borders.
- Treating max-players as a performance setting: Raising this value doesn't make the server stronger; it just widens the door. Your RAM, CPU, and plugins decide how many players you can handle.
- Switching online-mode mid-setup: Player UUIDs change, so inventories, the whitelist, and permissions no longer match the old records. Make this decision before you open the server.
If you're not sure how a setting will affect your server, change one thing at a time and check TPS after each change. That way you can easily roll back the line that causes trouble.
Next step: Try the settings on a real server
server.properties settings only matter if the server has enough resources. For a private server with 2-5 friends, the OB-MC-1 Minecraft server with 2 GB of RAM and NVMe SSD storage is a good starting point for learning and experimenting with this file. If you're planning a larger community or a plugin server, compare all Minecraft server plans. OyunBulut plans run in our Istanbul data center and come with DDoS protection and a web panel; you can manage your server from the web panel and get support through a support ticket if you run into problems. Once you pick a plan, you can launch it with the starter settings above and move up to a Minecraft plan with more RAM as you grow.
Frequently asked questions
Where is the server.properties file located?
It's in the server's root folder, next to the server jar file. It is created automatically the first time the server runs.
Why aren't my server.properties changes applying?
Changes are only read when the server restarts. Also, a file edited while the server is running can be overwritten with the old values on shutdown, so stop the server first.
What's the difference between view-distance and simulation-distance?
view-distance sets the area sent to players to see, while simulation-distance sets the area where mobs, crops, and redstone actually run. simulation-distance is what really affects CPU load.
Is it safe to set online-mode=false?
Not on its own, because anyone can join with any username. On offline-mode servers, a password login plugin like AuthMe is a must.
Why isn't spawn-protection working?
Spawn protection doesn't kick in if there are no opped players on the server. Ops are also not affected by the protection, so test with a non-op account.