1. Home
  2. Hosting guides
  3. Minecraft server properties

Minecraft server properties explained

server.properties is the settings file of a Minecraft Java server, with 69 settings in Java Edition 26.3 that set the difficulty, the game mode, the player limit, the whitelist and the seed of a new world. Here is where the file is, how to edit it without breaking anything, what the common settings do and which old ones are game rules now.

Prices checked on 10 October 2026 on the hosts' own order pages. All prices include VAT.

A Minecraft server with a RAM stick, a grass block and a map

The short answer

server.properties sits in the main folder of a Java server: stop the server, change the value after the = sign, save the file and start the server again. The settings people change most are motd, difficulty, gamemode, max-players, white-list, view-distance and level-seed. Since 1.21.9, pvp, allow-nether, spawn-monsters and enable-command-block are game rules that you set with /gamerule.

Compare Minecraft server hosting for a small vanilla server

For a small vanilla server, compare the Minecraft server hosting plans below by price: all three hosts have a file manager in the browser, so you can edit server.properties without extra software. Each row is the best plan at that host for 2 to 5 players on vanilla Java in Poland (Warsaw), with the lowest price first.

The best Minecraft server plan at each host for 2 to 5 players on Java in Poland (Warsaw)
ProviderMemoryCPU & storageMonthly priceOrder page
Cheapest Minecraft Hosting Starter, budget line4 GBRyzen 9 7950X with DDR5, Poland (Warsaw) 1 shared vCPU, 20 GB NVMe€3.20 /mo Same price on every termView plan CheapestMinecraftHosting Starter (opens Cheapest Minecraft Hosting)
Astroworld Hosting Mini Performance4 GBRyzen 9 7950X with DDR5, Poland (Warsaw) 2 reserved vCPU, 50 GB Enterprise NVMe€3.18 /mo First 3 months, then €7.95/mo, €6.95 on 24 months 60% off for new customersView plan Astroworld Mini Performance (opens Astroworld Hosting)
Lodehost Mini, performance line4 GBRyzen 9 7950X with DDR5, Poland (Warsaw) 2 reserved vCPU, 50 GB Enterprise NVMe€3.18 /mo First 3 months, then €7.95/mo, €6.95 on 24 months 60% off for new customersView plan Lodehost Mini (opens Lodehost)

On the Performance lines the large price is what a new customer pays a month at the start: for the first 3 months at both Astroworld Hosting and Lodehost, when you pay monthly. The regular monthly price comes after it, and the last price in each row is the monthly price on the host's longest term.

Compare the same billing term and location before you order.

Every price is taken from the host's own order page. How we compare

What does server.properties control?

server.properties controls 3 kinds of settings, and the server reads every one of them only when it starts:

  • Who can join

    online-mode, white-list, enforce-whitelist and max-players decide who gets in and how many players fit at once.

  • How the world plays

    difficulty, gamemode and hardcore set the rules, and level-seed and level-type shape the terrain of a new world.

  • How hard the server works

    view-distance and simulation-distance decide how many chunks each player keeps loaded and running.

The server rewrites server.properties every time it starts: it keeps your values, drops your comments and puts back the default for any value it cannot read.

Where is the server.properties file?

The server.properties file is in the main folder of a Minecraft Java server, next to the server .jar, eula.txt and the world folder, and the server creates it the first time it starts. If you do not see it yet, start the server once and stop it again. On a hosted server, open the file manager in the panel: server.properties is in the top folder, not inside the world. A Bedrock server has its own server.properties, which comes with the Bedrock Dedicated Server download.

How to edit Minecraft server properties

To edit Minecraft server properties, stop the server, change the value after the = sign in server.properties and start the server again, because the server only reads the file at startup. Step by step:

  1. Stop the server in the console or the panel.
  2. Open server.properties in a plain text editor such as Notepad, TextEdit in plain text mode or nano, or in the file manager of your host.
  3. Change only the value after the = sign, for example difficulty=hard. Lines that start with # are comments.
  4. Save the file as UTF-8 under the same name.
  5. Start the server and check the console for errors.

When the server starts, it rewrites the file. It keeps your values, adds any setting that is missing with its default and drops your comments. A value it cannot read, such as tru instead of true, quietly goes back to the default, so look at the file again after the restart if a change seems to have no effect.

Minecraft server properties settings and defaults

These Minecraft server properties settings are the ones people change most, with their defaults in Java Edition 26.3. In level-type, the minecraft: part can be left out:

Common server.properties settings with their defaults in Minecraft Java Edition 26.3
SettingDefaultWhat it does
motdA Minecraft ServerThe line under the server name in the multiplayer list
difficultyeasypeaceful, easy, normal or hard
gamemodesurvivalThe game mode of new players: survival, creative, adventure or spectator
force-gamemodefalseWith true, every player is put back in the default game mode on joining
hardcorefalseHardcore mode for a world the server creates
max-players20How many players can be online at the same time
white-listtrueOnly players on the whitelist and operators can join; false before 26.3
enforce-whitelistfalseWith true, online players who are no longer on the whitelist are kicked when it reloads
online-modetrueChecks that every player has a real Minecraft account
spawn-protection16A square around spawn where only operators can build: 16 protects 33 by 33 blocks, 0 turns it off
allow-flightfalseWhether players may fly in survival with a mod; with false, the server kicks players who stay in the air too long
level-nameworldThe world folder the server loads, or creates when it does not exist
level-seedemptyThe seed of a new world; empty means a random seed
level-typeminecraft:normalnormal, flat, large_biomes, amplified or single_biome_surface for a new world
generate-structurestrueVillages and other structures in new chunks; dungeons still appear with false
view-distance10How many chunks the server sends to each player, from 3 to 32
simulation-distance10How many chunks around each player keep running mobs, crops and redstone, from 3 to 32
server-port25565The port players connect to
server-ipemptyThe address the server listens on; leave it empty so it listens on all of them
player-idle-timeout0Minutes before an idle player is kicked; 0 never kicks anyone
pause-when-empty-seconds60Seconds without players before the server pauses itself
resource-packemptyA download link to a resource pack that players are offered on joining, up to 250 MiB
op-permission-level4The permission level that /op gives a player, from 0 to 4
enable-rconfalseRemote access to the console over the network, without encryption

The rest of the 69 settings covers things most servers never touch, such as the query protocol, text filtering and the management server added in 1.21.9. The Minecraft Wiki lists every one of them. On Paper, pause-when-empty-seconds is switched off by default, because plugins do not expect the server to pause.

Minecraft server properties pvp, command blocks and keep inventory

Minecraft server properties no longer include pvp or command blocks: since Java 1.21.9, pvp, allow-nether, spawn-monsters and enable-command-block are game rules, and keep inventory has always been one. You change them with /gamerule in the console or in the game as an operator, and the value is saved with the world:

Old server.properties settings that are game rules now, with their names in Minecraft 26.3
What you wantBefore 1.21.9Command in 26.3
Turn off pvppvp=falsegamerule pvp false
No monstersspawn-monsters=falsegamerule spawn_monsters false
Close the Netherallow-nether=falsegamerule allow_entering_nether_using_portals false
Allow command blocksenable-command-block=truegamerule command_blocks_work true
Keep items on deathNever a propertygamerule keep_inventory true

Game rules got their snake case names in 1.21.11. On 1.21.9 and 1.21.10 the same rules are called pvp, spawnMonsters, allowEnteringNetherUsingPortals and commandBlocksEnabled, and keep inventory is keepInventory on every version before 1.21.11. Older servers still read pvp and the other three from server.properties.

How to set a seed in Minecraft server properties

To set a seed in Minecraft server properties, put it after level-seed= before the world exists, because the seed and the level-type only count when the server generates a new world. For a server that already has a world, follow 4 steps:

  1. Stop the server and make a backup of the world.
  2. Rename the world folder, for example to world-old, or set level-name to a new name. On Spigot and on Paper before 26.1, rename world_nether and world_the_end as well.
  3. Fill in level-seed with the seed, and level-type if you want a flat, amplified or large biomes world.
  4. Start the server, which generates the new world from that seed.

A seed made of letters works as well as a number. World generation changes between some Minecraft versions, so a seed from a video made on an older version can look different on yours.

Minecraft server properties online-mode: true or false?

Keep online-mode=true in Minecraft server properties unless the server runs behind a Velocity or BungeeCord proxy: with false, the server skips the account check, so anyone can join under any name, yours included. That also means a stranger who picks the name of an operator gets that operator's rights on an offline server.

Behind a proxy, false is correct on the servers behind it, because the proxy checks the accounts instead, and Velocity's own setup guide tells you to set it. Make sure those servers can only be reached through the proxy. If minecraft.net is down while online-mode is true, nobody can log in until it is back.

Minecraft server properties motd and color codes

The motd in Minecraft server properties is the line under your server's name in the multiplayer list, A Minecraft Server by default, and it should be 59 characters or fewer, because a longer one can make the list show a connection error. Colors and styles use the section sign § and one character:

  • Colors: §a green, §b aqua, §c red, §e yellow and §6 gold.
  • Styles: §l bold, §o italic and §n underlined, with §r to reset everything.
  • Order: put the color first and the style after it, because a color code switches off the style before it.

A line such as motd=§6§lOakvale SMP §r§7| survival, no resets shows the name in bold gold and the rest in gray. The server reads the file as UTF-8, so the § sign works as it is. If your editor saves it as something else, write § in its place.

Minecraft Bedrock server properties

Minecraft Bedrock server properties live in the server.properties of Bedrock Dedicated Server, a different file with its own settings and port 19132 instead of 25565. The file that comes with the download has a comment under every setting that explains the allowed values. The settings that differ most from Java:

  • server-name is the name in the server list, and max-players starts at 10 instead of 20.
  • allow-cheats turns cheats such as commands on or off, false by default.
  • allow-list takes the place of white-list and reads allowlist.json.
  • default-player-permission-level gives new players visitor, member or operator rights, member by default.
  • tick-distance, 4 by default and 12 at most, does the job of simulation distance on Java.

On a crossplay server, Bedrock players join a Java server through Geyser, so the Java server.properties above is the one that counts. Our guide to Bedrock server hosting covers the Bedrock side.

Which server.properties settings help with lag?

The server.properties settings that help most with lag are simulation-distance and view-distance, both 10 by default. A simulation distance of 6 leaves a little over a third of the chunks running around each player, and a view distance of 8 sends each player fewer chunks. The other settings hardly change the load. Our guide on Minecraft server lag covers the Paper settings and the farms that matter more.

Before you edit server.properties

Before you edit server.properties, take 3 precautions, because one typo can send your players to a brand new world:

  1. Stop the server

    The server reads the file only when it starts, so stop it, make the change and start it again.

  2. Keep a copy

    Save a copy of the file first, so you can put the old settings back in a few seconds.

  3. Check level-name twice

    A typo in level-name makes the server create a new world under that name. The old world stays in its folder, but everyone spawns somewhere new.

Questions about server.properties

Do I need to restart the server after changing server.properties?

Yes. The server reads server.properties only when it starts, so a change counts from the next start. Some settings have a command that works right away, such as whitelist on or difficulty, but write the value in the file as well if you want to keep it.

Why does my server.properties keep resetting?

The server rewrites the file every time it starts. It drops your comments and puts the default back for any value it cannot read, so a typo such as tru instead of true looks like a reset. Check the spelling of the value and restart.

How do I turn off pvp on a Minecraft server?

On Java 1.21.9 and newer, type gamerule pvp false in the console, or /gamerule pvp false in the game as an operator. On older versions, set pvp=false in server.properties and restart the server.

How do I make my Minecraft server hardcore?

Set hardcore=true in server.properties before the server creates the world, because the setting applies to new worlds. For an existing world, stop the server, rename the world folder, set hardcore=true and start it, so it generates a new hardcore world.

What does spawn-protection do?

It stops everyone except operators from building or breaking blocks near spawn. The default of 16 protects a square of 33 by 33 blocks around the spawn point, and 0 turns it off. A server without any operators has no spawn protection at all.

Does a LAN world use server.properties?

No. A world you open to LAN from singleplayer runs on the game's built-in server and takes its settings from the world and the Open to LAN screen. server.properties belongs to the dedicated server software.

What is the default max-players on a Minecraft server?

20 on a Java server and 10 on Bedrock Dedicated Server. Raise it in server.properties if you need more slots, and make sure the plan has enough RAM for the extra players.

Still unsure? Use the Minecraft server finder