Skip to content

How to Grant OP Rights on a Minecraft Java Server

Assign OP rights via the in-game chat

Attention

To execute this command, you must already have OP rights. If you do not have these, use the console or the ops.json method instead.

Info

When assigning OP rights, players automatically receive the OP level that is defined in the server.properties file under the op-permission-level entry.

  1. Log in
    Log in to your Minecraft server.

  2. Open the chat
    Open the chat. By default with the t key.

  3. Enter the command
    Enter the following command:

    /op <player name>     # Makes the player an operator
    /op <player name>     # Makes the player an operator

Assign OP rights via the server console

Attention

All commands must be entered in the console without /!

Info

When assigning OP rights, players automatically receive the OP level that is defined in the server.properties file under the op-permission-level entry.

  1. Open the dashboard
    Open your dashboard and select your Minecraft Java Edition server.

  2. Open the console
    Navigate to the server console under the menu item "Overview".

  3. Enter the command
    Enter the following command:

    op <player name>     # Makes the player an operator
    op <player name>     # Makes the player an operator

Assign OP rights via the ops.json file

  1. Open ops.json
    Connect to your server via SFTP and open the file ops.json.

  2. Add the entry
    Insert the following entry within the square brackets []:

    {
        "uuid": "<playeruuid>",
        "name": "<game name>",
        "level": 4,
        "bypassesPlayerLimit": false
    }
    {
        "uuid": "<playeruuid>",
        "name": "<game name>",
        "level": 4,
        "bypassesPlayerLimit": false
    }
  3. Restart the server
    Save the changes and restart the server.

Info

If you want to enter several players, separate the entries with a comma ,:

{
    "uuid": "<player1uuid>",
    "name": "<player1name>",
    "level": 4,
    "bypassesPlayerLimit": false
},
{
    "uuid": "<player2uuid>",
    "name": "<player2name>",
    "level": 4,
    "bypassesPlayerLimit": false
}
{
    "uuid": "<player1uuid>",
    "name": "<player1name>",
    "level": 4,
    "bypassesPlayerLimit": false
},
{
    "uuid": "<player2uuid>",
    "name": "<player2name>",
    "level": 4,
    "bypassesPlayerLimit": false
}

OP Levels

LevelDescription
1Can change protected spawn areas
2Can edit command blocks and use basic commands (except level 3-4 commands)
3May execute sanctions such as /kick, /ban etc.
4Has full administrative control, including server commands such as /stop

Info

bypassesPlayerLimit allows the player to join the server even if the player limit has been reached.

Tip

You can find out the UUID of a player e.g. at NameMC on the basis of his name.