Skip to Content
Running a ServerCommon server.properties Settings

Most basic server options live in server.properties. To edit it:

  1. Stop the server (changes made while it runs can be overwritten).
  2. Open the Files tab and click server.properties.
  3. Change the line you need, save, and start the server again.
SettingWhat it doesExample
difficultypeaceful, easy, normal or harddifficulty=hard
gamemodeDefault mode for new players: survival, creative, adventure, spectatorgamemode=survival
force-gamemodeIf true, players are set to the default gamemode on every joinforce-gamemode=true
pvpWhether players can damage each otherpvp=false
allow-flightStops the server from kicking players for flying (needed for some mods and plugins)allow-flight=true
view-distanceHow many chunks players can see (range 3 to 32, default 10)view-distance=8
simulation-distanceHow far from a player the world is actively updatedsimulation-distance=6
max-playersPlayer slot limitmax-players=20
motdThe text shown in the server listsee MOTD
white-listOnly allow listed playerssee Whitelist
online-modeVerify accounts with Mojangsee Online Mode
level-seedSeed for new worldssee Change Your World Seed
enable-command-blockAllow command blocks on older versionssee Command Blocks

Lower view-distance and simulation-distance are the easiest ways to cut lag. Values of 6 to 8 are plenty for most servers.

Changing things without restarting

Difficulty and gamemode can also be changed in-game with /difficulty and /gamemode. Changes to server.properties itself need a restart.

Allow-flight only matters in survival. Anti-cheats usually need to be told separately that flying is allowed for certain ranks.

Last updated on