Mine Hour logo

server.properties and commands: a Minecraft server guide

Whitelist, operators, gamerules, spawn, backups, and version switching: a straightforward Minecraft server administration guide with commands and settings ready to copy.

· 6 min read

a group of blue boxes

server.properties and commands: the practical guide for anyone managing a Minecraft server

Creating the server is the easy part. The difference between a world that lasts months and one that becomes a headache shows up later: who joins, who is in charge, how spawn works, where the backups are. This guide gathers the settings that really matter day to day, with commands ready to copy. Everything designed for Java Edition on the current version of the game (26.3 at the time this text was written) — always check your server's version before applying anything.

Where the files are

In the server root you'll find three folders/files that handle almost everything:

  • server.properties — the general server settings.
  • whitelist.json and ops.json — who can join and who has operator powers.
  • world/ (or world_nether/ and world_the_end/, depending on the software) — the world itself.

Golden rule: edit server.properties with the server stopped or restart after saving. Changes to files read at startup do not take effect mid-game.

server.properties: the lines worth changing

The file has dozens of options, but a server for friends practically only uses these:

motd=Servidor da galera - sobrevivencia
max-players=20
online-mode=true
white-list=true
enforce-whitelist=true
difficulty=normal
gamemode=survival
pvp=true
allow-flight=false
spawn-protection=0
enable-command-block=true
level-name=world
view-distance=8
simulation-distance=6

Performance: view-distance x simulation-distance

  • view-distance: how far players can see. Between 6 and 8 is the sweet spot for most servers. High values bring down TPS.
  • simulation-distance: how far the game keeps processing mobs, redstone and farms. Apart from spawn and central farms, 5 or 6 is usually enough.

If the server starts to lag, tweak these two before thinking about changing plans. In Paper, the command /tps shows tick health — 20 TPS is ideal.

Security: online-mode and whitelist

online-mode=true makes the server validate the account with Mojang, which prevents someone from joining using another person's nickname. Only turn this off if you have a very specific reason (for example, servers behind a proxy), and know that whitelist in offline mode protects much less.

Whitelist: closing the server to people you trust

With whitelist enabled, only people on the list can join. After enabling it in the file, use the console or chat:

/whitelist on
/whitelist add NomeDoJogador
/whitelist remove NomeDoJogador
/whitelist list
/whitelist reload

Console commands go without the slash. Details that prevent confusion:

  1. The nickname must be exactly the same as the account's (uppercase and lowercase letters count).
  2. enforce-whitelist=true ensures that anyone removed during the game is kicked immediately.
  3. After editing whitelist.json by hand, run /whitelist reload instead of restarting the server.

Operators without overdoing it

/op unlocks practically everything, including commands that can break the world. Give it to two or three people at most, and review the list from time to time:

/op NomeDoJogador
/deop NomeDoJogador

For everyone else, the way is to limit by permission (with permission plugins) or simply not give OP. /gamemode, /tp and /give in the chat of those who don't need it is the beginning of the end of the fun of survival.

Gamerules that change the game

Gamerules are not in server.properties: they are applied by command and saved in the world.

/gamerule keepInventory true
/gamerule doDaylightCycle false
/gamerule doWeatherCycle false
/gamerule mobGriefing false
/gamerule playersSleepingPercentage 50
/gamerule doFireTick false
  • keepInventory: no one loses their items when they die. No more drama while exploring.
  • doDaylightCycle: useful for creative or building servers.
  • mobGriefing: turns off creepers destroying bases and endermen stealing blocks.
  • playersSleepingPercentage: at 50, half the server sleeping skips the night.
  • doFireTick: prevents fire from spreading and burning buildings.

Be careful with farms: several depend on default gamerules. Before changing them, tell whoever built the iron or mob farm.

Spawn: where everyone is born and why it matters

/setworldspawn 120 70 -300
/spawnpoint NomeDoJogador 120 70 -300
  • /setworldspawn defines the world point (used on first join and by the compass).
  • /spawnpoint works per player — great for placing each person at their own base.
  • spawn-protection in server.properties defines a radius in blocks where no one without OP can build. 0 unlocks everything. If the spawn is far from the bases, set a low value and you're done.

Tip: build a spawn area with a chest of starting items and a sign with the rules. First-time joiners will thank you.

Backups that actually work

A backup is only worth anything if you can restore it. The safe procedure, with the server running:

/save-off
/save-all

Then copy the world folders (world, and also world_nether/world_the_end if they exist) and server.properties, and finish with:

/save-on

Without save-off, the server can write to the world in the middle of the copy and you end up with a corrupted file. Keep at least three copies: one local, one in the cloud, and one automatic from the provider. If you host on Mine Hour, automatic backups already cover day-to-day needs — but it's worth downloading a copy to your computer before any major update.

Changing versions without losing the world

Updating is the most delicate moment in a server's life. An order that works:

  1. Make a backup and store the world file somewhere else.
  2. Check whether your software (Paper, Spigot, Fabric, Forge) already has a build for the new version.
  3. Confirm plugin by plugin and mod by mod. A plugin without an update can prevent the server from starting.
  4. Replace the server's .jar, adjust the startup command if necessary, and turn it on.
  5. The world will be converted on first launch — there is no downgrade. If something goes wrong, the way out is to restore the backup.

If half the group uses mods, wait for the update. A server that comes up on the new version and doesn't open for friends is worse than a server a week behind.

Importing an existing world

Have a singleplayer world you want to turn into a server? The path is short:

  1. Stop the server.
  2. Upload the world folder to the root, with a simple name (mundo, for example).
  3. Point level-name=mundo in server.properties.
  4. Delete the session.lock inside the world folder if it came along.
  5. Turn on the server and check /seed and the spawn position.

The same applies to worlds downloaded from ready-made maps. On Bukkit/Paper servers, each dimension has its own folder — if the world came from vanilla Java and you are on Paper, the server separates Overworld, Nether, and End automatically on first run.

Settings that often break the server

  • allow-flight=false with players using elytra or mods causes a kick for "flying is not enabled". On a modded server, leave true.
  • player-idle-timeout kicks whoever stays still; if people like to go AFK, use 0.
  • max-tick-time=-1 prevents the watchdog from bringing down the server during an occasional chunk stall.
  • Memory in the start script: -Xms and -Xmx with the same value. Too low a value causes OutOfMemoryError; too high makes the server choke during garbage collection.
  • Editing a file with the server running: the change is overwritten on the next stop. Always stop first.

Conclusion

Running a Minecraft server is less about memorizing commands and more about building habits: backup before touching anything, whitelist always on, OP for few people, and gamerules agreed with the group. Configure it once calmly, document the choices on a sign at spawn, and the server goes months without giving you trouble. If you want to start without setting up infrastructure, you can bring the world up on a provider like Mine Hour and spend your time on the part that matters: playing.

Sources