Updated:

Give and remove operator rights

# In game (run by an operator)
/op PlayerName
/deop PlayerName
# In the server console (no slash needed)
op PlayerName

The first operator has to be added from the server console. Operators are saved in ops.json in the server folder.

Permission levels

LevelWhat it allows
1Build inside spawn protection
2Cheat commands such as /gamemode, /give and /tp, and editing command blocks
3Player management: /kick, /ban, /op, /deop
4Server control such as /stop; every command

/op grants the level set by op-permission-level in server.properties (default 4). To give different people different levels, stop the server and edit level in ops.json. Level 2 is a sensible start for friends.

Kick a player

/kick PlayerName Breaking the rules

Kicking only disconnects them, and they can rejoin straight away. Use it as a warning and ban repeat offenders. The reason appears on their screen.

Ban and unban

/ban PlayerName Griefing builds
/pardon PlayerName
/banlist players

Bans are stored in banned-players.json with the date and reason.

When they come back on another account (IP ban)

/ban-ip PlayerName
/pardon-ip 203.0.113.5

/ban-ip blocks every connection from that player's IP address. It can also block other people on the same home or school network, and mobile IPs change often, so it is not watertight. For persistent griefers, switch to a whitelist so only approved players can join.

Bedrock Edition

Common problems

Common questions

Check your command

The Command Error Doctor checks common syntax mistakes in your browser.