How to Add an Operator (OP) to Your Minecraft Server
Learn how to use the Minecraft server op command to grant admin permissions. Step-by-step guide covering console commands, permission levels, and common trouble
What Is an Operator in Minecraft?#
An operator (OP) is a player with administrative permissions on your Minecraft server. Operators can execute commands that regular players cannot, such as changing the time of day, teleporting players, giving items, and managing the server environment. The level of access depends on the operator permission level you assign, ranging from 1 to 4.
Granting operator status is one of the first tasks you'll handle after making your Minecraft server. Without at least one operator, you won't be able to manage your server effectively while in-game.
How to Add an Operator Using the Console#
The most reliable method to add an operator is through your server console. This works whether the player is online or offline.
Step 1: Access Your Server Console#
Log into your server control panel. If you're running a local server, open the terminal or command prompt window where your server is running. The console displays server logs and accepts commands directly.
Step 2: Use the OP Command#
Type the following command into the console:
op PlayerNameReplace PlayerName with the exact Minecraft username (case-sensitive on Java Edition). Press Enter to execute the command.
You'll see a confirmation message: Made PlayerName a server operator.
Step 3: Verify Operator Status#
You can confirm the operator was added by checking the ops.json file in your server's root directory. This file stores all operators and their permission levels in JSON format.
Setting Operator Permission Levels#
Minecraft uses four operator permission levels, each granting different command access:
| Level | Permissions | Typical Use |
|---|---|---|
| 1 | Bypass spawn protection | Trusted builders |
| 2 | Use basic commands (/clear, /difficulty, /effect, /gamemode, /tp) | Moderators |
| 3 | Use player management commands (/ban, /kick, /op) | Admins |
| 4 | All commands including /stop | Owner, co-owners |
To set a specific permission level, use this syntax in the console:
op PlayerName 2This grants level 2 permissions to the player. If you don't specify a level, the server uses the default defined in server.properties (typically level 4).
You can adjust the default operator permission level by editing server.properties:
op-permission-level=4Change the value from 1 to 4 based on your preference, then restart your server for changes to take effect.
Adding Operators In-Game#
If you already have operator permissions, you can grant operator status to other players while in-game. Open the chat window (default key: T) and type:
/op PlayerNameThis method requires you to be an operator yourself and the command execution must be enabled in your server settings. The player doesn't need to be online when you run this command.
Managing the ops.json File#
The ops.json file in your server directory contains all operator entries. Here's what a typical entry looks like:
[
{
"uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"name": "PlayerName",
"level": 4,
"bypassesPlayerLimit": false
}
]You can manually edit this file, but use the console commands whenever possible to avoid syntax errors. If you edit ops.json directly, stop your server first, make your changes, save the file, then restart.
The bypassesPlayerLimit field determines whether the operator can join when the server is full. Set this to true for your primary administrators.
Removing Operator Status#
To revoke operator permissions, use the deop command:
deop PlayerNameThis removes the player from ops.json immediately. The player will lose all operator permissions but can still play as a regular player. This is useful when removing staff members or fixing permission issues.
Common Issues and Solutions#
Command not working: Verify you're using the exact Minecraft username. Player display names or nicknames won't work. Check the usercache.json file in your server directory for the correct spelling.
Permission level not applying: After changing permission levels in server.properties, you must restart the server. A reload command won't apply these changes. Existing operators may need to be re-opped to receive new default levels.
ops.json errors: If your server won't start after editing ops.json, you likely have invalid JSON syntax. Use a JSON validator online, or delete the file and use console commands to rebuild it from scratch.
Player still has no permissions: Ensure enable-command-block is set to true in server.properties if you're testing with command blocks. Some permissions also require specific game modes (operators in Survival can't use certain creative-only features without switching modes).
Operator Best Practices#
Grant the minimum permission level needed for each role. Moderators handling player disputes need level 2 or 3, not full level 4 access. Reserve level 4 for yourself and perhaps one trusted co-owner.
Regularly audit your ops.json file to remove inactive or former staff members. Old operator accounts are security risks if compromised.
Combine operator permissions with a whitelist for added security on private servers. This creates two layers of access control.
Consider using a permissions plugin like LuckPerms on Paper or Spigot servers for more granular control. These plugins let you create custom permission groups and fine-tune exactly which commands each player can use, going far beyond the basic four operator levels.
Get Reliable Minecraft Hosting#
Managing operators and permissions is simpler on a stable hosting platform with an intuitive control panel. Prism Nodes offers premium Minecraft hosting with one-click console access, automatic backups, and 24/7 support to help with server administration. Use code IMSWITCHING for 15% off your first month at prismnodes.com/minecraft.
Permission Levels and Server Software#
The four-level operator system works on vanilla Minecraft servers and most server software variants. If you're running Paper, Spigot, or Purpur, these levels still apply, but you gain the option to install permission plugins for more control.
Fabric and Forge servers use the same operator system unless you install a permissions mod. The base operator commands remain identical across all server types.
When you update your Minecraft server, your ops.json file transfers to the new version without changes. Operator permissions persist across updates, though some commands may be added or modified in new Minecraft versions.
Frequently asked questions
What is the op command in Minecraft?
The op command grants operator (admin) permissions to a player on your Minecraft server. Use 'op PlayerName' in the console or '/op PlayerName' in-game if you already have operator status. This gives the player access to administrative commands based on their permission level.
What are the different operator permission levels?
Minecraft has four operator levels: Level 1 bypasses spawn protection, Level 2 allows basic commands like /gamemode and /tp, Level 3 adds player management commands like /ban and /kick, and Level 4 grants all commands including server control. You can set a specific level using 'op PlayerName 2' syntax.
How do I remove operator permissions from a player?
Use the deop command in your server console or in-game: 'deop PlayerName'. This immediately removes the player from the operators list and revokes all admin permissions. The player can still join and play as a regular user.
Can I add an operator when the player is offline?
Yes, you can add operators whether the player is online or offline. The op command works through the server console at any time, and the permissions will be active the next time that player joins your server.