GAME SERVER HOSTING: 50% OFF first order with code GHOST50
Minecraft background

How to Configure Your Minecraft Server

Learn how to edit server.properties and configure the most common settings on your Minecraft server

It's common to enable flight on your Minecraft server, change the difficulty, toggle PvP, set a custom MOTD, and much more. All of these live in the server.properties file, which you can edit directly from the File Manager. Alternatively, more advanced users can make themselves an operator and change many of these settings with in-game commands.

Changing Server Settings

  1. Log in to the GhostCap Panel and Stop your Minecraft server.
  2. Go to File Manager.
  3. Open the server.properties file and locate the setting you want to change.
  4. Edit the value after the = sign and save the file.
  5. Start your server to apply your changes.
Note

Settings in server.properties are only read when the server starts, so changes will not take effect until you restart. If a setting is missing from your file, add it on a new line in the same key=value format.

Minecraft Server Settings

These are the most commonly changed Minecraft server settings. A full list can be found on the Minecraft Wiki.

SettingDefault ValueOther Possible ValuesDescription
allow-flightfalsetrueAllows players to fly on the server while in Survival mode. See our Enable Flight guide.
difficultyeasypeaceful, normal, hardDefines the difficulty of the server, such as damage dealt by mobs and how hunger and poison affect players. See our Difficulty Settings guide.
enable-command-blockfalsetrueEnables command blocks. See our Command Blocks guide.
enforce-whitelistfalsetrueEnforces the whitelist on the server, kicking any online players who are not on it. See our Whitelist guide.
force-gamemodefalsetrueForces players into the server's default gamemode every time they join. See our Force Gamemode guide.
gamemodesurvivalcreative, adventure, spectatorDefines the default mode of gameplay. See our Creative Mode guide.
hardcorefalsetrueServer difficulty is ignored and set to hard, and players are set to spectator mode when they die. See our Hardcore Mode guide.
level-nameworld(Any valid string)Used as the world name and its folder name.
level-seedblank(Any valid seed value)Sets a world seed for your world, as in Singleplayer. The world generates with a random seed if left blank. See our Change Seed guide.
level-typeminecraft
minecraft
, minecraft
, minecraft
, minecraft
Determines the world preset that is generated.
max-players20(Any positive integer)The maximum number of players that can play on the server at the same time. See our Player Limit guide.
motdA Minecraft Server(Any valid string)The message displayed in the server list of the client. See our Change Server Name guide.
online-modetruefalseChecks connecting players against Mojang's account servers. Disabling this allows unverified usernames to join. See our Enable Offline Mode guide.
player-idle-timeout0(Any positive integer)If non-zero, players are kicked from the server if they are idle for more than that many minutes. See our Idle Timeout guide.
pvptruefalseEnables player versus player combat. See our Disable PvP guide.
spawn-monsterstruefalseDetermines whether hostile mobs spawn naturally. See our Monster Spawning guide.
spawn-protection16(Any non-negative integer)The radius in blocks around spawn where only operators can modify blocks. Set to 0 to disable. See our Spawn Protection guide.
view-distance102 to 32How many chunks the server sends to each player in every direction. Lower values improve performance. See our View Distance guide.
white-listfalsetrueEnables the whitelist so only approved players can join. See our Whitelist guide.
Tip

Changing level-name, level-seed or level-type on an existing world will not regenerate it. To start fresh, see our Reset World guide.