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

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.jsonandbanned-ips.json— the bans.eula.txt—eula=trueis 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=0What each one does, in player language:
online-mode=truevalidates 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-whitelistclose the server to anyone not on the list. Theenforcekicks even those who were already online when the list was enabled.view-distanceis the loading range sent to the client;simulation-distanceis the range in which mobs, redstone and crops work. Lowering these two is the cheapest way to gain performance, with little visual cost.spawn-protectionprotects a radius in blocks around spawn (16 by default) against block breaking and placing by non-ops.allow-flight=falsekicks players who stay in the air too long — useful against cheaters, but annoying for elytra users. On a friends-only server,trueis usually more comfortable.player-idle-timeoutkicks AFK players after X minutes (0 disables it). In hourly hosting, leaving it at0and 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 reloadSteps that avoid headaches:
- Enable the whitelist before sharing the address.
- Add the friends with the exact username, respecting capitalization.
- Confirm with
/whitelist listthat everyone showed up. - Only then restart, so the
enforce-whitelisttakes 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 chatTwo 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/setworldspawndefines the point where everyone spawns and where they return when they die without a bed.spawnRadiusis 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./worldborderlimits 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-onA 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 -fThis 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:
- Make a backup and download a copy of the world to your PC.
- Read the release notes for the target version on Minecraft's official site.
- 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.
- Bump the version in the panel and start it. Minecraft converts the world to the new format on first load.
- 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:
- Stop the server.
- Upload the world folder via FTP/panel. The folder must contain the
level.datfile at its root — if the zip came with an extra folder inside, go up one level. - Rename it to the name in
level-name(or adjust thelevel-name). - Make sure the files belong to the server user (on Linux:
chown -R minecraft:minecraft world). - 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=truewith 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-blockdisabled 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
More posts
How to import a world to the Minecraft serverStep by step to move the single-player world (or another host's) to the server: correct folders, level-name, 26.1 changes and common mistakes.
How to install plugins on a Minecraft server (Paper)Step-by-step guide to installing plugins on your Paper server: where to download them, how to check whether they loaded, which ones are worth getting first, and how to fix the most common errors.
Building and survival games to play with friendsSeven building and survival games to play with friends: what each one does best, how many players they support, and how to keep the world online without depending on the host.
Minecraft server to play with friends: 2026 guideStep-by-step guide to creating a Minecraft server and playing with friends: Java vs Bedrock, RAM, whitelist, invites, crossplay on mobile and common errors.