Making Yourself a Server Operator
A server operator (or "op") has access to all admin commands, including /gamemode, /give, /tp, and the ability to op or ban other players. This is the quickest way to give yourself full control of a fresh server.
Granting Operator Status
Run the following command, replacing <username> with the player's Minecraft name:
/op <username>
The easiest place to run this is from the server console, where you don't need to be online. When typing in the console, leave off the leading slash and just type op <username>.
Removing Operator Status
To revoke a player's op, use:
/deop <username>
Operator Permission Levels
You can control how much power operators have with the op-permission-level setting in server.properties:
| Level | Grants |
|---|---|
| 1 | Can bypass spawn protection. |
| 2 | Can use most single-player cheat commands and command blocks. |
| 3 | Can use multiplayer management commands like /kick, /ban, and /op. |
| 4 | Can use all commands, including /stop. |
The default is 4. Players you op are stored in the ops.json file in your server folder.
Only op people you fully trust. An operator can change gamemodes, spawn items, and remove other operators.