Mine Hour logo

How to configure a Minecraft server: administration guide

server.properties, whitelist, operators, gamerules, backups and version switching: the practical guide to administering your Minecraft server without breaking the world.

· 6 min read

black computer keyboard on brown wooden desk

How to configure a Minecraft server: an administration guide

Getting the server up and running is the easy part. Admin life starts afterward: someone asks to become op, spawn turns into a PvP zone, a friend sleeps and no one can get through the night, and then the world corrupts on the very day you finished the main base. This guide is about that part — configuration and maintenance, from the server.properties file to the backup that saves the weekend.

If you don't have the server running yet, start there; here we assume it already starts up and already has someone joining. For those who prefer not to keep a machine running at home, Mine Hour hosts Vanilla, Forge, Fabric, Spigot, and Paper servers by the hour of use, with a ready-made subdomain and automatic backup.

The files you'll open every week

Almost everything in administration happens in five files at the server root:

  • server.properties — the general world and network settings.
  • whitelist.json — the list of who can join (generated by commands).
  • ops.json — who has operator powers.
  • banned-players.json and banned-ips.json — the bans.
  • eula.txt — eula=true is you accepting Mojang's contract. Without it the server won't start.

Golden tip: stop the server with /stop before editing files by hand. Editing server.properties while the server is running makes the panel overwrite your change on the next shutdown.

server.properties: only what really matters

The file is long, but most lines can stay at the default. A snippet of sensible configuration for a friends' survival server:

motd=Servidor dos amigos - entre e feche a porta
max-players=20
online-mode=true
white-list=true
enforce-whitelist=true
difficulty=normal
gamemode=survival
hardcore=false
pvp=true
level-name=world
view-distance=8
simulation-distance=6
spawn-protection=16
enable-command-block=true
allow-nether=true
allow-flight=false
player-idle-timeout=0

What each one does, in player language:

  • online-mode=true validates the account with Mojang. If you turn this off, anyone can join using someone else's username — including yours. Only turn it off if you know exactly why.
  • white-list + enforce-whitelist close the server to anyone not on the list. The enforce kicks even those who were already online when the list was enabled.
  • view-distance is the loading range sent to the client; simulation-distance is the range in which mobs, redstone and crops work. Lowering these two is the cheapest way to gain performance, with little visual cost.
  • spawn-protection protects a radius in blocks around spawn (16 by default) against block breaking and placing by non-ops.
  • allow-flight=false kicks players who stay in the air too long — useful against cheaters, but annoying for elytra users. On a friends-only server, true is usually more comfortable.
  • player-idle-timeout kicks AFK players after X minutes (0 disables it). In hourly hosting, leaving it at 0 and using pause-when-empty is usually better than kicking everyone.

On Bedrock, the names change a little: the whitelist is called allow-list (allow-list.json) and individual permissions are in permissions.json. The reasoning is the same.

Whitelist and operators in practice

With the server running, do everything by command — it's faster and avoids JSON syntax errors.

/whitelist on
/whitelist add NomeDoAmigo
/whitelist list
/whitelist reload

Steps that avoid headaches:

  1. Enable the whitelist before sharing the address.
  2. Add the friends with the exact username, respecting capitalization.
  3. Confirm with /whitelist list that everyone showed up.
  4. Only then restart, so the enforce-whitelist takes effect.

For operators, use /op NomeDoJogador and /deop when the person no longer needs it. The permission level is set in op-permission-level (4 by default) and ranges from 1 (can ignore spawn protection) to 4 (accesses all commands). Give op to very few people — op can run /stop, /kick and commands that mess up the world.

Gamerules: changing game rules without a plugin

Gamerules are applied by command and apply to the current world. The most used ones:

/gamerule keepInventory true          # morrer não perde itens
/gamerule doDaylightCycle false       # noite eterna para eventos
/gamerule doWeatherCycle false        # sem chuva indesejada
/gamerule mobGriefing false           # creeper não destrói construção
/gamerule doFireTick false            # fogo não se espalha
/gamerule naturalRegeneration false   # cura só com comida
/gamerule playersSleepingPercentage 50 # metade dorme, noite passa
/gamerule randomTickSpeed 3           # padrão; 0 congela plantações
/gamerule announceAdvancements false  # some o spam de conquistas
/gamerule logAdminCommands false      # comandos não aparecem no chat

Two common traps: gamerules are not copied automatically when you change worlds (level-name), and /gamerule keepInventory only starts applying to deaths after the command.

Spawn, protected area and map limits

A well-designed spawn prevents 80% of new-server fights:

/setworldspawn 0 70 0
/spawnpoint NomeDoJogador 0 70 0
/gamerule spawnRadius 5
/worldborder center 0 0
/worldborder set 5000
  • /setworldspawn defines the point where everyone spawns and where they return when they die without a bed.
  • spawnRadius is how spread out players spawn around that point. Lower it to 5 if the spawn is a built village; raise it if you want to disperse people.
  • /worldborder limits exploration and protects the server from infinite chunk generation.
  • Build a stone or barrier platform at spawn in advance — it's what keeps someone from falling into the void on their first entry.

Backups: the only habit you can't skip

The right way to copy the world with the server running is to pause writing first:

/save-all
/save-off
# copie a pasta world/ (e world_nether/, world_the_end/)
/save-on

A simple Linux script, to leave in the early-morning cron:

DATA=$(date +%F-%H%M)
tar -czf /backups/mundo-$DATA.tar.gz /srv/minecraft/world*
ls -1t /backups/mundo-*.tar.gz | tail -n +8 | xargs rm -f

This keeps the seven most recent backups and deletes the rest. Three rules: test the restore every now and then, keep at least one copy off the server (if the host goes down, everything on it goes with it) and do a manual backup before any major change — version, plugins, world import. Serious hosts already do this automatically, but an automatic backup you've never checked doesn't count.

Changing versions without losing the world

Development snapshots come out almost every week — at the time this text was written, the testing cycle for the next winter drop was underway. Don't run production on a snapshot.

A playbook that works:

  1. Make a backup and download a copy of the world to your PC.
  2. Read the release notes for the target version on Minecraft's official site.
  3. Check whether every plugin or mod has a build for the new version. An outdated plugin may simply fail to load — or worse, load and corrupt data.
  4. Bump the version in the panel and start it. Minecraft converts the world to the new format on first load.
  5. Test for 10 minutes with a test world before opening it up to the crew.

Watch out for something almost nobody mentions: the conversion is one-way. A world opened in a new version won't open in the previous one again without a backup. Downgrade only with an old copy in hand.

Importing an existing world

Want to bring over that single-player save or a downloaded map? The procedure is the same:

  1. Stop the server.
  2. Upload the world folder via FTP/panel. The folder must contain the level.dat file at its root — if the zip came with an extra folder inside, go up one level.
  3. Rename it to the name in level-name (or adjust the level-name).
  4. Make sure the files belong to the server user (on Linux: chown -R minecraft:minecraft world).
  5. Start it, join and check coordinates, world inventory and gamerules — they come from the imported world, not from your server.properties.

In single player, the save lives in %appdata%\.minecraft\saves (Windows), ~/Library/Application Support/minecraft/saves (macOS) or ~/.local/share/minecraft/saves (Linux).

Errors that show up every week

  • "Connection refused" or timeout — server off, port closed or wrong address.
  • Joined and got kicked instantly — whitelist on without the nick, or online-mode=true with a non-premium account.
  • Lag with few players — high view-distance, too many mobs piled up or chunks loaded by redstone.
  • "Unknown" command — missing op, or enable-command-block disabled for command blocks.
  • World vanished after editing the level-name — the server created a new world. The old folder is still there; put the name back.

Conclusion

Running a Minecraft server is 90% discipline and 10% command. Keep the whitelist on, give op to those who need it, understand the gamerules before fighting them, lower the render distances when the server chokes and back up before touching anything big. The rest is playing — which was the goal from the start.

If you want a server that starts fast, pauses on its own when the last player leaves and already comes with backup configured, it's worth checking out Mine Hour and putting your next world up there.

Sources