New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
How to Grant OP Rights on a Minecraft Java Edition Server
Minecraft Java EditionMinecraft Java EditionGrant OP Rights

How to Grant OP Rights on a Minecraft Java Edition Server

Grant OP rights on a Minecraft Java Edition server

2 min read
Oct 15, 2023

Assign OP rights via the in-game chat

  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
    

Assign OP rights via the server console

  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
    

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
    }
    
  3. Restart the server
    Save the changes and restart the server.

OP Levels

Level Description
1 Can change protected spawn areas
2 Can edit command blocks and use basic commands (except level 3-4 commands)
3 May execute sanctions such as /kick, /ban etc.
4 Has full administrative control, including server commands such as /stop
Written byEmeraldHost Team
Last updated on Aug 20, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord
Minecraft Java Edition

Ready to get started?

Rent your Minecraft Java Edition Server now

Join our Discord community 1257 members online right now