How to Enable Operator (OP) Permissions on Your Minecraft Java Server

Learn how to give players operator permissions on your Minecraft Java server using the RiverHosting panel, so trusted players can run commands and manage the game.
Operator permissions, often called OP, give a player elevated access on your Minecraft Java server. Operators can run commands, change game settings in-game, and manage other players depending on the permission level you assign. This guide shows you how to OP a player quickly using the RiverHosting panel.
Before you start
- Your server must be running or have been started at least once so player data is available.
- You will need access to your server on the RiverHosting panel.
- The player you want to OP must have joined your server at least once so their username is registered.
Minecraft Java uses OP levels from 1 to 4. Higher levels unlock more commands. Level 4 gives full access to all commands including those that affect the server itself. Most trusted friends only need level 2 or 3.
1. How to OP a player using the server console
The fastest way to give a player operator permissions is through the live server console in the RiverHosting panel. No file editing is needed.
- Log in to the RiverHosting panel.
- Click on your Minecraft Java server to open its page.
- Click Console in the left-hand menu.
- Make sure your server is running. If it is not, click Start first.
- In the command input box at the bottom of the console, type the following command and press Enter:
op PlayerNameReplace PlayerName with the exact Minecraft username of the player you want to OP. The username is case-sensitive.
If the command worked, you will see a message in the console confirming that the player has been made an operator. They will also receive a notification in-game if they are currently online.
2. How to remove OP from a player
If you need to remove operator permissions from a player, you can do this just as easily from the console.
- Open the Console tab on your server page in the RiverHosting panel.
- In the command input box, type the following and press Enter:
deop PlayerNameReplace PlayerName with the exact username of the player. Their operator access will be removed immediately.
As soon as you run the deop command, the player loses all operator permissions. If they are online at the time, they will no longer be able to run operator-level commands right away.
3. How to view and edit the ops list using the File Manager
Minecraft Java keeps a list of all operators in a file called ops.json in your server's main folder. If you want to review who has OP access, or make changes when the server is offline, you can edit this file directly.
- Open your server page in the RiverHosting panel.
- Click Files in the left-hand menu.

- Look for the file called
ops.jsonin the root of your server files. - Click the file to open and edit it.
- You will see a list of entries. Each entry includes the player's username and their assigned OP level.
- To remove a player, delete their entire entry from the list. Make sure the JSON formatting stays valid with commas between entries and no trailing comma after the last one.
- Save the file when you are done.
- Restart your server for the changes to take full effect.
Editing ops.json manually is useful for reviewing the full list, but using the console op and deop commands is quicker and less error-prone for day-to-day changes.
By default, players given OP via the console are assigned level 4. If you want to set a specific OP level, you can edit the level value directly in the ops.json file. Valid values are 1, 2, 3, and 4.
Troubleshooting
- The op command says the player was not found. Make sure the player has joined the server at least once and that you are using their exact Minecraft username with correct capitalisation.
- The player still cannot run commands after being OPed. Ask them to relog. Some permission changes require the player to disconnect and reconnect before taking effect.
- The command is not working in the console input box. Make sure your server is fully started and not in a loading or stopping state. Wait for it to show as online before sending commands.
- I cannot find ops.json in the File Manager. The file is only created after the first time you run the op command successfully. If you have not OPed anyone yet, the file may not exist yet.
- Changes to ops.json are not being applied. Restart your server after saving manual edits to the file. The server reads the file on startup.
Need help?
If you run into any issues with operator permissions or anything else on your server, the RiverHosting support team is happy to help.
Visit riverhosting.com/support to open a support ticket or find other ways to get in touch.