Realmscraft · server notes ✦

Running a server

Server op commands in Minecraft: give the lowest level that does the job.

Operator status decides who can run commands on a Java Edition server. Knowing the server op commands Minecraft uses, and the permission levels behind them, keeps a small community like Realmscraft fair and safe.

Everything below applies to the official Java Edition server.

The core server op commands in Minecraft

Run from the console or by an operator.

Commands
CommandWhat it does
/op <player>makes a player an operator
/deop <player>removes operator status
/ban <player> [reason]bans a player
/pardon <player>lifts a ban
/setworldspawnsets the world spawn point
/whitelist add <player>allows a player when the whitelist is on

A minecraft server ban by name uses /ban; /ban-ip blocks an address. As for how to set spawn: Minecraft server operators stand at the spot and run /setworldspawn. Operators are stored in ops.json in the server folder, each with a level.

Operator permission levels

Four levels, set in server.properties.

The op-permission-level setting in server.properties (default 4) sets the level new ops receive. You can edit an entry in ops.json to give a moderator level 3 instead of 4.

How to enable commands in a Minecraft server

Ops get commands; others do not.

On a dedicated server, commands are enabled for operators by default; how to enable commands in Minecraft server terms usually means giving a player /op from the console. In single player, cheats must be allowed when the world is created or opened to LAN.

Safe admin habits

For small servers.

  1. Turn on the whitelist. white-list=true in server.properties.
  2. Keep backups before big changes. Copy the world folder.
  3. Log reasons for bans. It settles disputes later.

Sources and further reading

Where the facts on this page come from.