Free hosting
Minecraft JavaMinecraft BedrockPaperMCFabricForgeGeyserMCTerrariaFactorioHytaleDiscord bots
Go premium

No hibernation, no timers, 5 GHz CPUs and up to 32 GB RAM.

From €1.99/month →
Tools & help
RAM calculatorMOTD generatorServer status checkerserver.properties generatorGuidesDiscord community
Language
EnglishNederlandsEspañolFrançaisDeutschItalianoPortuguêsLatviešuPolskiSuomiNorskRomânăPortuguês (BR)Türkçeहिन्दी
Start free
Minecraft · Configuration

Minecraft server.properties explained: every setting

server.properties is the main settings file of a Minecraft Java server. It controls how many players can join, game mode, difficulty, view distance, whitelist and more. This guide explains the settings that matter, with defaults and recommended values.

FreeGameHost logo FreeGameHost Guides Updated 4 min read
A Minecraft server.properties file with key settings highlighted

Quick answer

  1. Stop the server, edit server.properties (File Manager, or the panel's Server Properties page), then start it again.
  2. The settings that matter most: max-players, gamemode, difficulty, view-distance, simulation-distance, white-list, online-mode and motd.
  3. For a laggy server, lower view-distance and simulation-distance first.

How the file works#

Each line is key=value. Lines starting with # are comments. The server writes the file on first start with default values. If you remove a line, the default is used. Use true or false in lowercase for yes or no settings.

Edit the file while the server is stopped. A running server can overwrite your edits when it shuts down.

Editing it on FreeGameHost#

Open your server, then Game → Server Properties. The page lists the settings with inputs and toggles and saves the file for you. A few keys are shown locked because the host sets them on every start: server-port, server-ip and query.port. For the Bedrock template, a few more are driven by the Startup page. You can also edit the file in the File Manager.

Gameplay settings#

SettingDefaultWhat it does
gamemodesurvivalDefault mode for new players: survival, creative, adventure, spectator.
force-gamemodefalseIf true, players are set to the default mode every time they join.
difficultyeasypeaceful, easy, normal or hard.
hardcorefalseHard difficulty with permanent death (players become spectators).
pvptrueWhether players can damage each other.
allow-flightfalseStops the server kicking players for flying. Needed by some mods and plugins.
allow-nethertrueEnables the Nether.
spawn-monsterstrueWhether hostile mobs spawn.
generate-structurestrueVillages, temples and other structures in new chunks.
spawn-protection16Radius around spawn that only operators can edit. 0 turns it off.
enable-command-blockfalseAllows command blocks to run.

World settings#

SettingDefaultWhat it does
level-nameworldFolder name of the world. Change it to load another world.
level-seed(empty)Seed used when a new world is created.
level-typeminecraft:normalWorld type: normal, flat, large biomes, amplified.
max-world-size29999984Maximum world radius in blocks. Lower it to stop players exploring too far.

Performance settings#

SettingDefaultRecommended
view-distance106 to 10. Lower to reduce chunk sending and memory.
simulation-distance105 to 8. How far from players mobs, crops and redstone are processed.
max-players20Set what your RAM can handle.
entity-broadcast-range-percentage100Lower (for example 70) to reduce entity updates.
network-compression-threshold256Leave at 256 unless you use a proxy.
sync-chunk-writestrueSafer on crashes. Leave on.

If your server lags, see our lag guide and the TPS explanation.

Access and security settings#

SettingDefaultWhat it does
online-modetrueChecks accounts with Mojang. Keep true unless a proxy does it.
white-listfalseOnly whitelisted players may join. See the whitelist guide.
enforce-whitelistfalseKicks players removed from the whitelist when you reload it.
enforce-secure-profiletrueRequires signed chat. Set false if Bedrock (Geyser) players get chat kicks.
op-permission-level4Permission level for operators added with /op.
player-idle-timeout0Kick idle players after this many minutes. 0 means never.
enable-rconfalseRemote console. Only enable with a strong rcon.password.
hide-online-playersfalseHides the player list in the server list.

Network and display settings#

SettingDefaultWhat it does
server-port25565Port the server listens on. Set by the host on FreeGameHost.
server-ip(empty)Leave empty unless you know you need to bind one address. Set by the host on FreeGameHost.
motdA Minecraft ServerText under the server name. See the MOTD guide.
enable-statustrueLets the server show up in the multiplayer list.
enable-queryfalseEnables the query protocol used by some status sites.
resource-pack(empty)URL of a resource pack to send to players.
require-resource-packfalseKicks players who refuse the pack.
Properties generator Build a server.properties with presets for any game mode.
Open the generator

Example: a small survival server#

server.properties
motd=Friends Survival
max-players=10
gamemode=survival
difficulty=normal
pvp=true
white-list=true
online-mode=true
view-distance=8
simulation-distance=6
spawn-protection=0

Common mistakes#

  • Editing while the server runs. The server saves its own copy when it stops.
  • Adding spaces around =. Write pvp=false, not pvp = false.
  • Changing level-name to a folder that doesn't exist. The server then generates a new world with that name.
  • Setting online-mode=false to fix a login problem. This opens your server to impersonation. Fix the real problem instead.
  • Changing level-seed on an existing world. It does nothing; only new worlds use it.

Frequently asked questions#

Where is server.properties?

In the main folder of your server, next to the server jar. It is created the first time the server starts. On FreeGameHost you can edit it from the Server Properties page under the Game menu or in the File Manager.

Do I need to restart after editing server.properties?

Yes. The file is read when the server starts. Stop the server, save your changes, and start it again. If you edit while it is running, the server may overwrite your changes when it stops.

What is a good view-distance?

For small servers, 8 to 10. If the server lags, lower it to 6 to 8 and keep simulation-distance at 5 to 8. Lowering these is the cheapest way to improve performance.

Why does my server.properties keep resetting?

Some hosts rewrite certain keys on every start, such as server-port, server-ip and query.port. Those are set by the host and shown locked on the FreeGameHost Server Properties page. Other changes persist.

What does online-mode do?

online-mode=true makes the server check every player's account with Mojang. Setting it to false lets cracked clients join but also makes it easy for anyone to impersonate your operators. Only turn it off behind a proxy that does the checking.

Can I change the world name or seed later?

level-name can be changed to load a different world folder. level-seed only affects a world that doesn't exist yet. To change the seed you need a new world.