Minecraft server.properties explained:
common settings and defaults
server.properties is the Minecraft server config file, sitting in the top level of the server folder. Player limit, difficulty, whitelist and seed are all set here. Changes take effect after you restart the server.
How to edit it
server.properties is a plain text file with one setting per line. The name goes left of the equals sign and the value goes on the right. Lines starting with # are comments.
max-players=10
difficulty=normal
motd=Our survival serverOn a server you run yourself, type stop in the console to shut it down. Open server.properties in the server folder with a text editor, save your changes and start the server again.
vProxy Cloud servers let you open server.properties from Files in vPanel. Save it there, then restart the server.
The new vPanel also has a Game settings tab that covers the most-changed settings with menus and switches, so you don’t need to remember setting names. It writes to the same server.properties, so changes still need a restart.
The server rewrites this file every time it starts. Comments you added disappear, missing settings come back with their defaults, and invalid values are reset. After editing, start the server once and reopen the file to check that your values stayed.
Defaults in the tables come from a file freshly generated by 26.3. The Game settings column gives the matching field in vPanel’s Game settings tab. If it’s blank, change the setting in the file.
Players and access
These settings decide who can join and what they can do. On a public server, keep online-mode set to true.
| Setting | Default | What it does | Game settings |
|---|---|---|---|
max-players | 20 | Maximum number of players online at once | Player limit |
online-mode | true | Only lets in players with a genuine Minecraft account. With false, anyone can join under any name | Account verification |
white-list | true | Only players on the whitelist can join. Before 26.3 the default was false | Enable allowlist |
enforce-whitelist | false | When the whitelist is turned on or someone is removed from it, kicks online players who aren’t on the list | Enforce allowlist immediately |
enforce-secure-profile | true | Only lets in players with a Mojang-signed chat profile | Require secure chat identity |
spawn-protection | 16 | Radius around spawn where only OPs can break blocks. 16 means 33 × 33 blocks, 0 turns it off | Spawn protection |
player-idle-timeout | 0 | Kicks players after this many idle minutes. 0 means never | |
hide-online-players | false | Hides the names of online players in the server list |
From 26.3, white-list defaults to true, so friends can’t join a newly created server. Add them to the whitelist with whitelist add, or set white-list to false.
World and game mode
Seed, world type and structures only matter when a new world or new chunks are generated. Areas you’ve already explored stay as they are.
| Setting | Default | What it does | Game settings |
|---|---|---|---|
level-name | world | Name of the world folder. Change it and the server loads that folder instead, or generates a new world if the folder doesn’t exist | |
level-seed | (blank) | World seed. Blank means random. Only affects newly generated worlds | World seed |
level-type | minecraft:normal | World type. minecraft:flat is Superflat, minecraft:large_biomes is Large Biomes, minecraft:amplified is Amplified | World type |
generate-structures | true | Generates villages, ruins and other structures. Only affects newly generated chunks | Generate structures |
gamemode | survival | Game mode for new players: survival, creative, adventure or spectator | Default game mode |
force-gamemode | false | Puts players back in the default game mode every time they join | |
difficulty | easy | Difficulty: peaceful, easy, normal or hard | Difficulty |
hardcore | false | Hardcore mode. Players who die can only spectate | Hardcore mode |
allow-flight | false | Allows flying in survival (through mods or plugins). With false, players who stay in the air too long are kicked | Allow flight |
To play on a world from your single-player game, upload the world folder and set level-name to that folder’s name.
Performance
When the server lags, these are the first settings to adjust.
| Setting | Default | What it does | Game settings |
|---|---|---|---|
view-distance | 10 | How far out the server sends chunks to players, as a radius in chunks | View distance |
simulation-distance | 10 | How far from players mobs, crops and redstone keep running. Lowering this does the most to reduce lag | Simulation distance |
entity-broadcast-range-percentage | 100 | How far away entities are shown to players, as a percentage | |
pause-when-empty-seconds | 60 | Pauses the world after this many seconds with no players online. A negative number turns pausing off | |
sync-chunk-writes | true | Writes chunks synchronously, so saves are less likely to be corrupted by a crash |
If the server still lags after lowering the view distance, the cause may be mobs, redstone or the CPU. Work through the lag checklist one item at a time.
How the server shows in the list
These control what players see in the multiplayer server list.
| Setting | Default | What it does | Game settings |
|---|---|---|---|
motd | A Minecraft Server | The description line under the server name in the server list | Server description |
enable-status | true | With false the server shows as offline in the list, but players can still connect |
The server icon in the list isn’t set in server.properties. Make a 64 × 64 pixel PNG, name it server-icon.png and put it in the top level of the server folder.
Where did pvp and allow-nether go
Version 1.21.9 moved 4 settings out of server.properties and into game rules. Older guides tell you to set pvp=false, which does nothing on newer versions. Use the gamerule command in the console instead.
| Old setting | Game rule now | Console example |
|---|---|---|
pvp | pvp | gamerule pvp false |
allow-nether | allow_entering_nether_using_portals | gamerule allow_entering_nether_using_portals false |
spawn-monsters | spawn_monsters | gamerule spawn_monsters false |
enable-command-block | command_blocks_work | gamerule command_blocks_work true |
Game rules are saved in the world and take effect as soon as you enter them, with no restart. A new world needs them set again. In 1.21.9 and 1.21.10 the rule names were written differently, for example spawnMonsters. The lowercase names with underscores in the table start from 1.21.11.
spawn-animals and spawn-npcs, which controlled animal and villager spawning, were removed back in 1.21.2 and have no matching game rule.
Settings to leave alone on a hosted server
On vProxy Cloud servers, server-ip, server-port and query.port are set by the system on every start, so your own changes get overwritten. Use the port shown in the Network tab of the control panel.
On a server you run yourself, keep enable-rcon set to false. RCON accepts commands over the network without encryption, and anyone who guesses the password controls your server.
References
- server.properties Minecraft Wiki
- Game rule Minecraft Wiki