Minecraft server: giving OP rights
Updated: 18 November 2026 · Guide · Minecraft · Game server
You make a player an operator by typing op <name> in the server console, for example op Steve. They then get the permission level set by op-permission-level in server.properties, level 4 by default, i.e. every command. If you only want to allow certain commands, set the level lower or, on Paper, Fabric or NeoForge, use a permissions plugin such as LuckPerms.
op and deop
op Steve Steve becomes an operator deop Steve Steve loses operator status
On Java both commands only exist on a dedicated server, not in a singleplayer world. Using them in game as /op requires level 3 yourself. That dictates the order the first time: the very first operator is created in the console, because in game nobody has the rights for it yet. In the console you type the commands without a slash.
With online-mode=true the name should be a real account name, because the server registers the player by their UUID. A typo doesn't create an operator.
The permission levels
| Level | Name | What it adds |
|---|---|---|
| 0 | Operator | Hardly anything: TPS display in the debug screen |
| 1 | Moderator | May build inside spawn protection (spawn-protection) |
| 2 | Gamemaster | More commands, command blocks, target selectors such as @a in commands |
| 3 | Admin | Multiplayer management commands, including op, deop and whitelist |
| 4 | Owner | All commands, including those for server management |
Each level includes the ones below it. A full list of which command needs which level is on each command's page on minecraft.wiki; for whitelist, op and deop it's level 3.
op-permission-level and function-permission-level
op-permission-level=4 function-permission-level=2
op-permission-level (0 to 4, default 4) sets which level a player gets when you add them with op. If the value is 2, every new operator is a Gamemaster and, for example, can no longer make anyone else an operator.
function-permission-level (1 to 4, default 2) has nothing to do with players: it determines the level at which functions from data packs run. Only raise it if a data pack explicitly requires it.
ops.json: level per player
The op command writes to the file ops.json in the server folder. It holds one entry per operator, and that's where you can set the level for individual players differently from the default:
[
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "Steve",
"level": 2,
"bypassesPlayerLimit": false
}
]level is this player's level; if the field is missing, op-permission-level applies. bypassesPlayerLimit allows joining even when max-players has been reached, but the player still counts towards it. The safest way is to edit the file while the server is stopped and start it afterwards.
Two side effects of operator status are worth knowing: on Java servers operators can always get in, even if they aren't on the whitelist. And from level 1 they can build inside the spawn protection that spawn-protection puts around the world spawn.
Why LuckPerms instead of OP on plugin servers
OP only knows five levels, and each one unlocks a whole block of commands. If you want to allow a moderator /ban but not /gamemode, levels won't get you there. A permissions plugin works with individual permissions: minecraft.command.ban is the permission for /ban, and plugins bring their own. You group these permissions into groups such as moderator or admin and attach players to the group.
LuckPerms runs on Paper and other Bukkit servers (plugins folder) as well as on Fabric, NeoForge and Forge (mods folder). After installation nobody has access to the LuckPerms commands at first. You give yourself first access in the console:
lp user Steve permission set luckperms.* true
On Bukkit servers LuckPerms can switch off the OP mechanism entirely: with enable-ops: false in the LuckPerms configuration all operators are removed and op and deop are disabled. If you'd rather give operator status only to certain groups, use auto-op: anyone with the permission luckperms.autoop automatically becomes an operator, and op and deop are disabled as well.
In our control panel
On our Minecraft servers you grant operators via the console in the control panel, with op and deop as above. There is deliberately no separate tab for admins and levels. You can edit ops.json in the “Files” tab if needed. Spawn protection is set in the “Game rules” tab (0 to 64 blocks, 0 switches it off).
- Setting up a whitelistWhy operators bypass it and what whitelist.json looks like
- Installing pluginsHow to get LuckPerms onto a Paper server
- server.properties fully explainedop-permission-level, spawn-protection and the rest
- Rent a Minecraft serverConsole, files and game rules in the control panel
Sources
- minecraft.wiki: Commands/op
- minecraft.wiki: Commands/deop
- minecraft.wiki: Permission level
- minecraft.wiki: Ops.json format
- minecraft.wiki: Server.properties
- LuckPerms wiki: Usage (first access, permissions)
- LuckPerms wiki: Configuration (enable-ops, auto-op)
- LuckPerms wiki: Installation (plugins or mods folder)