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.
Changing server.properties
Section titled “Changing server.properties”-
Stop your Minecraft server.
-
Open
server.propertiesin your Minecraft server’s root file directory, and change the settings you want. Each one is a line ofname=value.server.properties difficulty=hardmax-players=10motd=Quackcraft: geese welcome -
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.
motdThe line under your server’s name in players’ server lists.
max-playersHow many players can be online at once.
difficultypeaceful,easy,normalorhard.gamemodeThe game mode new players start in:
survival,creative,adventureorspectator.force-gamemodeWith
true, every player is put in that game mode each time they join.view-distanceHow far players can see, in chunks of 16 blocks.
simulation-distanceHow far from players, in chunks, the world keeps moving: crops grow and mobs move.
allow-flightWith
true, players who fly in survival aren’t kicked. Mods and plugins that let players fly need it.spawn-protectionHow many blocks around the world’s spawn point only operators can build in.
white-listWhether only players on the whitelist can join.
If your server lags, lower view-distance and simulation-distance first.
Changing game rules
Section titled “Changing game rules”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 truekeep_inventoryPlayers keep their items and experience when they die.
- Before 1.21.11
keepInventory
mob_griefingMobs change blocks: creepers blow holes, endermen pick blocks up.
- Before 1.21.11
mobGriefing
pvpPlayers can hurt each other.
players_sleeping_percentageHow many of the players online, in percent, have to sleep to skip the night.
- Before 1.21.11
playersSleepingPercentage
advance_timeDay turns into night.
- Before 1.21.11
doDaylightCycle
advance_weatherThe weather changes.
- Before 1.21.11
doWeatherCycle
immediate_respawnPlayers respawn without the death screen.
- Before 1.21.11
doImmediateRespawn
spawn_phantomsPhantoms come for players who haven’t slept for three days.
- Before 1.21.11
doInsomnia
show_death_messagesDeaths 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.
Starting a new world
Section titled “Starting a new world”-
Stop your Minecraft server.
-
In
server.properties, setlevel-nameto a name no folder in your server’s root file directory has yet. To choose the new world’s seed, setlevel-seedtoo.server.properties level-name=quackcraft2level-seed=goose -
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.