MasaApps360
English
RCONRCON

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.

3 min read · Updated

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.

Operator commands on a Java Edition server
CommandWhat it doesReply
op SteveMakes Steve an operatorMade Steve a server operator
op Steve, againNothing to changeNothing changed. The player already is an operator
deop SteveRemoves the statusMade Steve no longer a server operator
deop Steve, not an operatorNothing to changeNothing 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.

Operator permission levels
LevelWhat it adds
1Build inside the spawn protection area
2Cheat commands such as gamemode, give, tp, and command blocks
3Player management: op, deop, ban, kick, whitelist
4Everything, 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:

  1. On the Servers screen tap the plus button to open Add Server.
  2. Fill in Server Name and Hostname or IP, choose Minecraft under Server Type and keep Port on 25575.
  3. Type the value of rcon.password into RCON Password, tap Test Connection, then Save Server.
  4. Tap the server and type op Steve at the prompt.
  5. Confirm with the reply line, and take the status back with deop Steve when 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, so Steve and steve are different operators, and entries copied from an online server do not match.
  • You edited ops.json while the server was running. The change can be overwritten; use op and deop instead.
  • 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?
4, the highest. Lower it to 2 in server.properties if you only want operators to use cheat commands and command blocks.
How do I remove op from someone?
Run deop with their name. The server answers Made NAME no longer a server operator, and the entry disappears from ops.json.
Can I give op from my iPhone?
Yes, if RCON is enabled on a Java Edition server. The RCON app sends the command over that connection and shows the server's reply.

You might also like

More RCON guides