Skip to content

Changing Server Settings

Your Minecraft server’s settings are in two places: server.properties, for the server itself, and game rules, for how its world plays.

  1. Stop your Minecraft server.

  2. Open server.properties in your Minecraft server’s root file directory, and change the settings you want. Each one is a line of name=value.

    server.properties
    difficulty=hard
    max-players=10
    motd=Quackcraft: geese welcome
  3. Start your Minecraft server.

QuackPlane sets server-ip, server-port and the query settings each time your server starts, so changes to those don’t stick.

  • motd

    The line under your server’s name in players’ server lists.

  • max-players

    How many players can be online at once.

  • difficulty

    peaceful, easy, normal or hard.

  • gamemode

    The game mode new players start in: survival, creative, adventure or spectator.

  • force-gamemode

    With true, every player is put in that game mode each time they join.

  • view-distance

    How far players can see, in chunks of 16 blocks.

  • simulation-distance

    How far from players, in chunks, the world keeps moving: crops grow and mobs move.

  • allow-flight

    With true, players who fly in survival aren’t kicked. Mods and plugins that let players fly need it.

  • spawn-protection

    How many blocks around the world’s spawn point only operators can build in.

  • white-list

    Whether only players on the whitelist can join.

If your server lags, lower view-distance and simulation-distance first.

Game rules are kept with the world and take effect at once. Run gamerule on your server’s Console page with a rule and a value. In-game, an operator puts a / in front.

gamerule keep_inventory true
  • keep_inventory

    Players keep their items and experience when they die.

    Before 1.21.11
    keepInventory
  • mob_griefing

    Mobs change blocks: creepers blow holes, endermen pick blocks up.

    Before 1.21.11
    mobGriefing
  • pvp

    Players can hurt each other.

  • players_sleeping_percentage

    How many of the players online, in percent, have to sleep to skip the night.

    Before 1.21.11
    playersSleepingPercentage
  • advance_time

    Day turns into night.

    Before 1.21.11
    doDaylightCycle
  • advance_weather

    The weather changes.

    Before 1.21.11
    doWeatherCycle
  • immediate_respawn

    Players respawn without the death screen.

    Before 1.21.11
    doImmediateRespawn
  • spawn_phantoms

    Phantoms come for players who haven’t slept for three days.

    Before 1.21.11
    doInsomnia
  • show_death_messages

    Deaths are announced in chat.

    Before 1.21.11
    showDeathMessages

Before Minecraft 1.21.9, PvP wasn’t a game rule: it was set with pvp in server.properties.

  1. Stop your Minecraft server.

  2. In server.properties, set level-name to a name no folder in your server’s root file directory has yet. To choose the new world’s seed, set level-seed too.

    server.properties
    level-name=quackcraft2
    level-seed=goose
  3. Start your Minecraft server. It makes the new world in a folder of that name.

Your old world stays in its folder, so you can switch back by changing level-name again.

Stuck on something? Ask our Discord flock, where fellow server administrators are happy to help.