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.

Updated 6 min read vProxy Cloud team

server.properties of a 26.3 server open in the vPanel file editor: max-players=20, motd=A Minecraft Server, online-mode=true, view-distance=10, and white-list=true on the last line

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 server

On 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.

General section of the vPanel Game settings tab: Server description A Minecraft Server, Default game mode survival, Difficulty easy, Player limit 20, and View distance and Simulation distance sliders both at 10
The General section of Game settings. Screenshot from vPanel (Chinese interface). The menu in the top-right corner switches vPanel to English.

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.

server.properties player and access settings, defaults and descriptions
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.

server.properties world and game mode settings, defaults and descriptions
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.

server.properties performance settings, defaults and descriptions
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.

server.properties server list settings, defaults and descriptions
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.

Settings moved from server.properties to game rules
Old settingGame rule nowConsole 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
The vPanel console log: gamerule pvp false answered with Game rule pvp is now set to false, and gamerule spawn_monsters false answered with Game rule spawn_monsters is now set to false
The console replies Game rule pvp is now set to false, and the rule is already in effect (demo screen).

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.

The vPanel Network tab with the allocation mc.example.com:25565 TCP, an edit note button and a green 主要 (primary) badge
The entry marked 主要 (primary) in the Network tab is the address and port the server uses (demo screen).

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

FAQ

Why didn’t my server.properties change do anything?
First check that you restarted the server. A misspelled setting name is ignored, and an invalid value resets to the default. Since 1.21.9, pvp, allow-nether and a few others have moved to game rules and are changed with the gamerule command.
I changed the seed. Why is the world the same?
A seed only applies to new worlds. Change level-name to a new name and start the server. It generates a new world from the new seed, and the old world folder stays where it was.
How do I make a superflat world?
Set level-type to minecraft:flat, change level-name to a new name, and restart. A world that already exists won’t turn flat.
Can the MOTD use accented letters or other non-English text?
Yes. Newer server versions read server.properties as UTF-8. If you edit it in Notepad, choose UTF-8 as the encoding when you save.
Why isn’t spawn protection working?
Spawn protection does nothing while the server has no OPs. Give yourself OP first with op <your name>.

Start a Minecraft server

Taiwan from NT$99/mo, Singapore from NT$120Billed every 30 days