Minecraft server.properties Explained (2026)

Published on | Updated

The server.properties settings you are most likely to change, with their defaults on Minecraft 26.3, plus the old settings that are now game rules.

Minecraft server properties explained

The server.properties file controls every core setting of your Minecraft server. It generates automatically on the first server start. Here is what the settings you are most likely to change do, checked against Minecraft 26.3.

Most Important Settings

SettingDefaultDescription
server-port25565The port players connect to
max-players20Maximum simultaneous players
view-distance10Render distance in chunks
simulation-distance10Tick distance in chunks
difficultyeasypeaceful, easy, normal, hard
gamemodesurvivalsurvival, creative, adventure, spectator
online-modetrueVerify Mojang accounts
motdA Minecraft ServerServer description in server list

Performance Settings

SettingRecommendedDescription
view-distance8 to 10Lower = less CPU. 8 is fine for most servers
simulation-distance6 to 8Distance where mobs and blocks tick
max-tick-time60000Crash timeout (ms). -1 to disable
network-compression-threshold256Packet compression. 256 is efficient
entity-broadcast-range-percentage100Lower for better network performance

Gameplay Settings

SettingDefaultDescription
spawn-protection16Radius around spawn where only ops can build
allow-flightfalseKick flying players (set true with mods)
hardcorefalsePermanent death, locks to hard difficulty
force-gamemodefalseForce default gamemode on join

World Settings

SettingDefaultDescription
level-nameworldWorld folder name
level-seed(blank)World generation seed
level-typeminecraft:normalnormal, flat, large_biomes, amplified
generate-structurestrueVillages, temples, etc.
max-world-size29999984World border radius

Settings That Moved to Game Rules

Older guides, including an earlier version of this one, list a few settings that are no longer in server.properties. Since 1.21.9, four of them are game rules, so you can change them while the server runs:

Old propertyGame rule on 1.21.11 and 26.xDefault
pvppvptrue
spawn-monstersspawn_monsterstrue
allow-netherallow_entering_nether_using_portalstrue
enable-command-blockcommand_blocks_worktrue

Set them in the console with, for example, gamerule pvp false, or in game with /gamerule. Leave out the value, as in gamerule command_blocks_work, to see the current setting. The old enable-command-block defaulted to false, while the game rule defaults to true, so check it after an update if command blocks should stay off. On 1.21.9 and 1.21.10 the rules had camelCase names, such as spawnMonsters. spawn-animals and spawn-npcs were removed in 1.21.2.

Security Settings

SettingDefaultDescription
online-modetrueVerify Mojang accounts. Always true for public servers
white-listtrue since 26.3 (false before)Only players on the whitelist can join
enforce-whitelistfalseAlso kick online players who are not on the whitelist
rate-limit0Packets a player can send before being kicked (0 turns it off)

The new white-list default only applies when the server writes a fresh server.properties. A server you update to 26.3 keeps the value it had. Our whitelist guide shows how to add players.

Warning: Setting online-mode=false disables account verification. Anyone can connect with any username. Only disable this if you use an authentication plugin.

How to Edit

  1. Stop the server
  2. Open server.properties in a text editor
  3. Change values after the = sign
  4. Save the file
  5. Start the server

Changes only take effect after a server restart.


Configure your server right. View Minecraft Hosting Plans

Minecraft on AMD Ryzen 9

Host Your Modded & Vanilla Minecraft Server

From €2.70/mo with NVMe storage, DDoS protection included, and a modpack installer in the panel for the CurseForge and Modrinth packs it lists, or upload your own server files over SFTP.