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

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.jsonandops.json— who can join and who has operator powers.world/(orworld_nether/andworld_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=6Performance: 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 reloadConsole commands go without the slash. Details that prevent confusion:
- The nickname must be exactly the same as the account's (uppercase and lowercase letters count).
enforce-whitelist=trueensures that anyone removed during the game is kicked immediately.- After editing
whitelist.jsonby hand, run/whitelist reloadinstead 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 NomeDoJogadorFor 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/setworldspawndefines the world point (used on first join and by the compass)./spawnpointworks per player — great for placing each person at their own base.spawn-protectioninserver.propertiesdefines a radius in blocks where no one without OP can build.0unlocks 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-allThen copy the world folders (world, and also world_nether/world_the_end if they exist) and server.properties, and finish with:
/save-onWithout 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:
- Make a backup and store the world file somewhere else.
- Check whether your software (Paper, Spigot, Fabric, Forge) already has a build for the new version.
- Confirm plugin by plugin and mod by mod. A plugin without an update can prevent the server from starting.
- Replace the server's
.jar, adjust the startup command if necessary, and turn it on. - 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:
- Stop the server.
- Upload the world folder to the root, with a simple name (
mundo, for example). - Point
level-name=mundoinserver.properties. - Delete the
session.lockinside the world folder if it came along. - Turn on the server and check
/seedand 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=falsewith players using elytra or mods causes a kick for "flying is not enabled". On a modded server, leavetrue.player-idle-timeoutkicks whoever stays still; if people like to go AFK, use0.max-tick-time=-1prevents the watchdog from bringing down the server during an occasional chunk stall.- Memory in the start script:
-Xmsand-Xmxwith the same value. Too low a value causesOutOfMemoryError; 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
More posts
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.
Games to play with friends: 12 co-op and Minecraft-like optionsList of games to play with friends: online and local co-op, Minecraft-like sandboxes, and what each one does best for your group.
Multiple worlds on the same Minecraft server: a practical guideLearn how to run lobby, parkour, minigames and adventure in separate worlds on the same Minecraft server, keeping maps, seeds and datapacks in the right place.