Minecraft op command: how to give someone operator status on a server
Type op Steve in the server console to make Steve an operator, and deop Steve to take it away. The server replies Made Steve a server operator, and the permission level comes from op-permission-level in server.properties, which is 4 (everything) unless you changed it.
The commands and the replies
Operator, or OP, means a player who may run admin commands. This page is about that status, not about overpowered items from give.
| Command | What it does | Reply |
|---|---|---|
op Steve | Makes Steve an operator | Made Steve a server operator |
op Steve, again | Nothing to change | Nothing changed. The player already is an operator |
deop Steve | Removes the status | Made Steve no longer a server operator |
deop Steve, not an operator | Nothing to change | Nothing changed. The player is not an operator |
A wrong spelling does not create an account, it just fails with That player does not exist. The list itself lives in ops.json next to the server jar, one entry per operator with a name, a UUID and a level.
What op-permission-level means
op-permission-level in server.properties sets the level every new operator gets. It runs from 1 to 4 and the default is 4.
| Level | What it adds |
|---|---|
| 1 | Build inside the spawn protection area |
| 2 | Cheat commands such as gamemode, give, tp, and command blocks |
| 3 | Player management: op, deop, ban, kick, whitelist |
| 4 | Everything, including stop and save-all |
Edit the property with the server stopped. If one friend should only have level 2, change that entry's level in ops.json with the server stopped, since the server can overwrite the file while it runs.
Run it from the server console or from your phone
On the machine that hosts the server, type the command in the server window with no slash. From your phone you need RCON enabled on the server first (see the Minecraft RCON guide on this site). Then, in the RCON app:
- On the Servers screen tap the plus button to open Add Server.
- Fill in Server Name and Hostname or IP, choose Minecraft under Server Type and keep Port on 25575.
- Type the value of
rcon.passwordinto RCON Password, tap Test Connection, then Save Server. - Tap the server and type
op Steveat the prompt. - Confirm with the reply line, and take the status back with
deop Stevewhen the job is done.
Why the op command does not work
- The name is misspelled, so the reply is
That player does not exist. - You typed it in game without level 3. The reply is
Unknown or incomplete command; use the server console or RCON, or have an existing operator at level 3 or 4 run it. - The server runs with
online-mode=false. UUIDs are built from the typed name, soSteveandsteveare different operators, and entries copied from an online server do not match. - You edited
ops.jsonwhile the server was running. The change can be overwritten; useopanddeopinstead. - The server is a Bedrock Dedicated Server. It handles permissions in its own way and has no RCON, so the RCON app cannot reach it.
Questions and answers
What is the command to give op in Minecraft?
op followed by the exact player name, for example op Steve, from the server console or an RCON session. Players already at level 3 or 4 can also run it in game.What is the default op-permission-level?
server.properties if you only want operators to use cheat commands and command blocks.How do I remove op from someone?
deop with their name. The server answers Made NAME no longer a server operator, and the entry disappears from ops.json.