For Creators & Hosts

Minecraft server.properties Explained: Every Setting Worth Changing (Java and Bedrock)

Where the file lives, how to edit it without losing your changes, and the handful of settings that actually matter.

Minecraft server properties live in one plain text file called server.properties. It sits in the folder you start the server from, you edit it with the server stopped, and you restart to apply the change. That's the whole workflow. The rest of this page is which lines are worth touching, grouped by what you're trying to do. Everything here is as of Java 26.3 and Bedrock 26.63, November 2026, and Minecraft's version numbers now look like that, so don't go hunting for 1.21.

The Minecraft Wiki has the exhaustive key-by-key table if you ever need every line. Below is the short list people really change, plus the stuff old guides get wrong.

Where is the server.properties file?

Self-hosted: it's in the server's working directory, meaning whatever folder you launch the server from. Run the server jar once and the file appears there. If you haven't got that far, my guide to making a Minecraft server walks through the first run. Bedrock works the same way, and its server comes with a default file already in the folder (more in the Bedrock section below).

Aternos: the Options page is a point-and-click version of the common settings: slots, gamemode, difficulty, whitelist, force gamemode, spawn protection and a few more. For the raw file, Aternos staff have pointed people to the Files page, while also saying some properties can't be edited because the server wouldn't work on their system. I'd treat the Options page as the safe route. Every change on the Options page needs a restart too, and plugins can override some options.

How to edit it without wrecking anything

  1. Stop the server.
  2. Copy the file somewhere as a backup.
  3. Open it in a plain text editor (Notepad, TextEdit in plain text mode, nano, whatever) and save it as UTF-8.
  4. Start the server again.

The format is one key=value per line. Lines starting with # are comments. Two things bite people. First, the server rewrites the file every time it starts: your values are kept, but any comments you added are gone. Second, a missing key or an invalid value is silently reset to its default. If you typo difficulty=hrad, you won't get an error, you'll just be playing on easy. If a change doesn't stick, open the file after a restart and see what it turned into.

Some settings only matter when a world is created, so changing them later does nothing to a world you've already generated. I flag those below.

Who can join

Need to make yourself an op? That's a command, not a property. Here's how to op yourself.

Gameplay: gamemode, difficulty, spawn protection

The keys older guides still list

If a tutorial tells you to set pvp=false, allow-nether=false, enable-command-block=true or spawn-monsters=false, it's out of date. Those four were removed from Java's server.properties and are now game rules, which you change in the world rather than in this file. spawn-animals and spawn-npcs were removed earlier, in 1.21.2. Putting the old lines in the file won't do anything. On Aternos you'll still see PVP and Monsters toggles on the Options page, which is the host's own interface.

World settings

Seed and level type are applied when a world is generated. To see a change you need a fresh world, which means a new level-name or deleting the old folder (back it up first). generate-structures only affects chunks that haven't been generated yet, so already-explored land keeps its villages.

Performance: view-distance and friends

Connection: server-port and server-ip

The MOTD

motd=A Minecraft Server is the line under your server's name in the multiplayer list. It takes colour and format codes, which are a section sign (§) followed by a character: §a for green, §l for bold, §r to reset, and so on. Colours are §0 to §9 and §a to §f. Formats are §k obfuscated, §l bold, §m strikethrough, §n underline and §o italic. Put the colour first, because a colour code after a format code cancels the format.

Type the § straight into the file in an editor that saves UTF-8. On a Windows numpad that's Alt+21, and on a US Mac keyboard it's Option+6. Keep the whole thing to 59 characters or fewer, or the server list may show a communication error.

Online-mode=false and "cracked" servers

This is the one setting I'd ask you not to touch. With online-mode=true, the server checks every player against Minecraft's account database. Set it to false and that check is gone. The wiki says to do it only if the server isn't connected to the internet, and that hackers with fake accounts can connect if it's off. Running with it off on purpose is what people call "cracking", and a cracked server lets in players with unlicensed copies. If you're curious about what it means for players, I wrote up what cracked Minecraft really is.

It also messes with the rest of your setup. Aternos's own Cracked toggle comes with a warning: flipping it causes fundamental changes, op and whitelist may stop working, and player data like inventory and position will probably be lost. If you flip it by accident, flip it back.

The other direction has a catch as well. With online-mode on, nobody can connect if Minecraft's account servers are down. That's annoying, but it's a lot better than the alternative.

Bedrock Dedicated Server: different file, different keys

Bedrock has its own server.properties. The syntax looks similar, but the two files aren't compatible, so don't paste one into the other. If you're setting up Bedrock, my Bedrock server guide covers the install. These are the keys people change:

KeyDefaultWhat it does
server-nameDedicated ServerThe server's label. There's no motd key on Bedrock, and no semicolons or colons in the name.
gamemodesurvivalSurvival, creative or adventure (no spectator). Applies when a player first joins, so it won't change existing players.
force-gamemodefalseWhen true, the server always uses the gamemode value. When false, it uses the value saved when the world was created.
difficultyeasySame idea as Java.
allow-cheatsfalseWhether cheat commands can be used. On Aternos Bedrock you need to be an op and have cheats on to run things like /gamemode.
max-players10Higher values hurt performance.
online-modetrueXbox Live authentication. Keep it on for anything reachable from the internet. Remote clients always need Xbox Live sign-in regardless.
allow-listcheck your fileTurns the allowlist on, with names in allowlist.json. Renamed from white-list in Bedrock 1.18.10.
default-player-permission-levelmembervisitor, member or operator, for players joining for the first time.
server-port19132The IPv4 port. server-portv6 is 19133.
view-distance32Minimum 5. Higher costs performance.
tick-distance4Range 4 to 12. Higher costs performance too.
level-nameBedrock levelThe folder inside worlds/.
level-seedblankBlank is random. You can't change the seed after the world is created.

One more Bedrock gotcha. enable-lan-visibility is true by default and binds the default ports, 19132 and 19133, even if you changed the port settings. If you run several Bedrock servers on one machine and they fight over ports, turn it off. Newer Bedrock builds have added more keys than this table covers, so open your own file to see what yours has.

Troubleshooting

Hosting your own, someday

Folly is a free multiplayer voxel game for PC, coming soon in early access. Player-hosted servers are a plan for early access, not something that has shipped. The plan is on the hosting and creators page.