Skip to main content
All Servers

Making Yourself a Server Operator

Learn how to grant yourself and others operator (admin) status on a Minecraft server.

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:

LevelGrants
1Can bypass spawn protection.
2Can use most single-player cheat commands and command blocks.
3Can use multiplayer management commands like /kick, /ban, and /op.
4Can use all commands, including /stop.

The default is 4. Players you op are stored in the ops.json file in your server folder.

warning

Only op people you fully trust. An operator can change gamemodes, spawn items, and remove other operators.