Skip to content
Sign inStart a server

Settings · 8 min read

server.properties explained: every setting that matters

What each Minecraft Java 26.x server.properties setting does, its default and safe values, plus recipes for whitelists, hardcore and build servers.

Last checked

Short answer

server.properties is the settings file of a Minecraft Java server: plain key=value lines in the server's main folder, next to the server jar. Stop the server, change a value, save, and start it again. Most servers only ever touch a dozen keys, all listed below. Two things changed in 26.x: new servers start with the whitelist on, and four old keys became game rules.

Where the file is

  • On your own PC: in the folder you run the server from. It appears after the first start, along with eula.txt and the world folder.
  • On a Galeforce server: the panel's Game page has the common settings as switches and boxes, and All settings has the rest. The whole file is also there over SFTP.
  • On another host: usually a settings page or a file manager in its panel. Some hosts manage the port and address lines themselves.

How the file works

  • One setting per line, as key=value. Lines starting with # are comments.
  • The server reads it at startup, so changes need a restart.
  • It follows Java's properties format, so a colon is written with a backslash: level-type=minecraft\:normal. Our generator handles the escaping for you.
  • The server rewrites the file every time it starts: keys sorted A to Z, comments removed and the date stamped at the top. Keep your notes somewhere else.
  • A key the server doesn't recognise stays in the file but does nothing, so a typo fails silently.

Which setting do I need?

The common jobs, and the one line for each. Lines that start with gamerule are typed in the console instead.

Common server.properties changes and the line for each
You want toSet this
Let anyone with the address joinSet thiswhite-list=false
Kick people as soon as you take them off the whitelistSet thisenforce-whitelist=true
Allow more playersSet thismax-players=40
Change the line under the server's nameSet thismotd=Friday survival
Start a fresh world and keep the old oneSet thislevel-name=world2 (a new folder)
Use a seedSet thislevel-seed= your seed, new worlds only
Make everyone creativeSet thisgamemode=creative
Turn off PvPSet thisgamerule pvp false
Stop monsters spawningSet thisgamerule spawn_monsters false
Close the NetherSet thisgamerule allow_entering_nether_using_portals false
Let people fly with mods without being kickedSet thisallow-flight=true
Kick players who go idleSet thisplayer-idle-timeout=15
Keep the world running when nobody is onSet thispause-when-empty-seconds=0
Let people build at spawnSet thisspawn-protection=0
Ease lag on a busy serverSet thisview-distance=8

Settings that became game rules

Four settings you'll still find in older guides no longer do anything in server.properties. They live in the world as game rules now, so you change them with a command in the console. On a new world all four are on, which means command blocks now work unless you switch them off.

server.properties keys that moved to game rules in Minecraft 26.x
Old keyGame ruleTo switch it off
pvpGame rulepvpTo switch it offgamerule pvp false
spawn-monstersGame rulespawn_monstersTo switch it offgamerule spawn_monsters false
allow-netherGame ruleallow_entering_nether_using_portalsTo switch it offgamerule allow_entering_nether_using_portals false
enable-command-blockGame rulecommand_blocks_workTo switch it offgamerule command_blocks_work false

A game rule belongs to the world, so it survives restarts and travels with the world folder. Type it without the leading slash in the server console, or with one in the game chat as an operator.

World

World settings in server.properties
SettingDefaultWhat it does
level-nameDefaultworldWhat it doesThe name of the world folder the server saves to; change it to start a brand-new world.
level-seedDefault(empty)What it doesA number or word that decides how the world is generated; leave it empty for a random world.
level-typeDefaultminecraft:normalWhat it doesThe kind of world to generate, and it only matters when a world is first created.minecraft:normal · minecraft:flat · minecraft:large_biomes · minecraft:amplified · minecraft:single_biome_surface
generate-structuresDefaulttrueWhat it doesWhether villages, temples and other buildings appear in new parts of the world.
max-world-sizeDefault29999984What it doesHow far from the centre the world border is allowed to stretch, in blocks.1 to 29999984
spawn-protectionDefault16What it doesThe radius in blocks around the world spawn where only operators can build; 0 turns it off.

Players

Players settings in server.properties
SettingDefaultWhat it does
max-playersDefault20What it doesHow many players can be on the server at the same time.
white-listDefaulttrueWhat it doesWhen this is on, only players on the whitelist can join. It is on by default from Minecraft 26.3 and off before that. Add a friend with whitelist add <name> in the console.
enforce-whitelistDefaultfalseWhat it doesKicks players missing from the whitelist as soon as the whitelist changes.
online-modeDefaulttrueWhat it doesChecks every player against Minecraft's account servers so nobody can pretend to be someone else.
gamemodeDefaultsurvivalWhat it doesThe game mode that new players start in.survival · creative · adventure · spectator
force-gamemodeDefaultfalseWhat it doesPuts players back into the default game mode every time they join.
allow-flightDefaultfalseWhat it doesLets players fly in survival mode with mods; without it, anyone who floats too long is kicked.
player-idle-timeoutDefault0What it doesMinutes a player can do nothing before being kicked; 0 means never.
hide-online-playersDefaultfalseWhat it doesHides the names of who is online in the server list.
enforce-secure-profileDefaulttrueWhat it doesOnly lets players with a Mojang-signed chat key join; turn it off if plugins change chat messages.

Difficulty & rates

Difficulty & rates settings in server.properties
SettingDefaultWhat it does
difficultyDefaulteasyWhat it doesHow hard the game is: peaceful has no monsters and hard has the toughest ones.peaceful · easy · normal · hard
hardcoreDefaultfalseWhat it doesPlayers are put into spectator mode when they die, and the game is always on hard. Only a new world can be made hardcore; an existing world keeps its own setting.

Network

Network settings in server.properties
SettingDefaultWhat it does
motdDefaultA Minecraft ServerWhat it doesThe text shown under the server name in the multiplayer list.
server-portDefault25565What it doesThe port that players connect to; the usual one is 25565.1 to 65534
enable-queryDefaultfalseWhat it doesTurns on a small extra service that tools and websites use to read server info.
query.portDefault25565What it doesThe port the query service listens on.1 to 65534

Admin

Admin settings in server.properties
SettingDefaultWhat it does
enable-rconDefaultfalseWhat it doesLets you send commands to the server from outside the game, using a password.
rcon.portDefault25575What it doesThe port that RCON listens on.1 to 65534
rcon.passwordDefault(empty)What it doesThe password needed to use RCON, so keep it long and secret.
op-permission-levelDefault4What it doesHow much power operators have, from 0 (none) to 4 (everything).0 to 4

Performance

Performance settings in server.properties
SettingDefaultWhat it does
view-distanceDefault10What it doesHow many chunks around each player the server sends; higher looks better but costs more CPU and bandwidth.3 to 32
simulation-distanceDefault10What it doesHow many chunks around each player stay active, so mobs move and crops grow.3 to 32
pause-when-empty-secondsDefault60What it doesSeconds with nobody online before the server pauses the world to save CPU; 0 or less means it never pauses.

Resource pack

Resource pack settings in server.properties
SettingDefaultWhat it does
resource-packDefault(empty)What it doesA direct download link for a resource pack that players are offered when they join.
resource-pack-promptDefault(empty)What it doesA message shown to players when they are asked to accept the pack.
require-resource-packDefaultfalseWhat it doesKicks players who refuse the resource pack.

Recipes

Friends only (the default from 26.3)

A new server on Minecraft 26.3 or later starts with white-list=true: only players on its whitelist can join, and everyone else sees “You are not white-listed on this server!”. Add each friend from the console with whitelist add <name>. To kick anyone you take off the list straight away, add:

enforce-whitelist=true

Open to anyone with the address

white-list=false

On a Galeforce server that's the Whitelist switch on the panel's Game page. Anyone who has the address can then join, so leave online-mode=true to stop people using someone else's name.

Hardcore survival

hardcore=true
difficulty=hard

Hardcore always plays on hard, and a player who dies becomes a spectator. It only takes on a new world: an existing world keeps its own setting, so change level-name too if you want a fresh hardcore world.

Creative build server

gamemode=creative
force-gamemode=true
difficulty=peaceful

gamemode alone only applies to players joining for the first time; force-gamemode puts everyone back into it each time they join.

Busy server, smoother ticks

view-distance=8
simulation-distance=6

Players see slightly less far; the server does a lot less work per tick. For memory, see how much RAM a Minecraft server needs.

When a change doesn't work

  • Nothing changed. The server was running when you saved. Stop it, check your line is still there, and start it.
  • The line is still there but does nothing. Check the spelling against the tables above: a misspelt key is kept and ignored. pvp, spawn-monsters, allow-nether and enable-command-block are game rules now.
  • The seed, world type or hardcore didn't take. They only apply when a world is made. Set a new level-name to make one.
  • Players kept their old game mode. Add force-gamemode=true.
  • Friends can't join a new server. From 26.3 a new file starts with white-list=true (an older server you update keeps its own line). Add them, or set it to false.
  • server-port keeps changing back. On our servers, and on many hosts, the panel sets server-ip, server-port and query.port at every start, so players use the address the panel shows.
  • Players get “Failed to verify username!” and you are tempted to set online-mode=false. Don't: with it off, anyone can join under any name, whitelist or not.

Build your own file, or paste an existing one to check it, with the server.properties generator. Setting up from scratch? Start with how to host a Minecraft server.

Checked against Minecraft Java Edition 26.3.

Related guides