Minecraft Operator Permissions and Levels

Minecraft 26.3

Command /op, five permission levels from 0 to 4 and which commands each level can access — according to the game's code. Plus ops.json, whitelist, and spawn protection.

  • 0–4 level
  • 89 commands
  • Minecraft 26.3
My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

On this page 13 sections

At a glance

Give op — /op and username; below, what's allowed on each level

  • Give op
    /op Steve
  • Take an Ocelot
    /deop Steve
  • Add to whitelist
    /whitelist add Steve
  • Enable the whitelist
    /whitelist on

OPs are given by command /op username — in the operator chat at level 3 or higher, in the server console without a backslash: op Steve. The game responds with 'Steve has been assigned as server operator'. The level is taken from op-permission-level — by default 4, that is, all commands.

How to give and take an op

  1. Open the server console (the window where it's running, or the console in the hosting panel) and type op Steve — with an exact username, no diagonal slash.
  2. This player is giving experience to others: /op ник in chat. Reissuing will respond with 'Nothing changed. The player is already an operator.'
  3. Take — /deop ник: 'Steve is no longer a server operator.'

If a player doesn't have sufficient permissions, the game responds with 'Unknown command or insufficient permissions' — just like a typo in the command.

Level 0 — any player

Regular player. Commands are only available to oneself: send a message in chat, view the list of players.

Level 1 — Moderator

An operator without commands: in 26.3 there are no level 1 commands. However, spawn protection does not apply to them.

Level 2 — Game Master

Gameplay mode: game commands, /give, /tp, weather, time, game rules, selectors @a and @p. This mode is also used by command blocks, datapack functions, and guests in a public world with allowed commands.

Level 3 — Administrator

Administrator: ban, kick, whitelist, and give op to others.

Level 4 — Owner

Owner: stop the server, save the world, profiling. This level is available on the console, on the owner of a single-player world with cheats, and is granted by /op on the server by default.

ops.json

List of operators is stored in the ops.json file next to server.properties. Commands /op and /deop manage it directly; it is manually edited when a level other than the default is required. op-permission-level:

[
  {
    "uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
    "name": "Notch",
    "level": 4,
    "bypassesPlayerLimit": false
  }
]

level — level from 0 to 4, bypassesPlayerLimit — whether to allow this operator when the server is full («Server is full!»). Fix the file manually and restart the server.

Whitelist

From 26.3, the whitelist is enabled by default (white-list=true): a new server only allows those who have been added. Others see 'You are not on the whitelist of this server!'. Commands require level 3:

  • /whitelist add Steve — add: 'Steve added to the whitelist';
  • /whitelist remove Steve — remove;
  • /whitelist on and /whitelist off — «White list enabled» and «White list disabled»;
  • /whitelist reload — re-read whitelist.json if manually edited.

Protection at spawn and operators

Around the spawn point within a radius spawn-protection (16 blocks by default). No one breaks these blocks except operators, regardless of level, even first-level ones. And a rule few know: While no operators are present on the server, spawn protection is completely disabled. It protects only the dimension where the server spawn point is located — usually the Overworld.

In single-player and online modes

A single-player world with cheats has level 4: all commands are available. For friends in a public network world, level 2 if commands were granted upon world opening, otherwise 0. Command Blocks and datapack functions work with level 2 (the function's level is set by function-permission-level).

Frequently asked questions

How to give a permission on a Minecraft server?

With the command /op and username: /op Steve, you need level 3 in chat and type it without a backslash in the server console. The game will respond with 'Steve has been designated as a server operator'. Remove the operator status with /deop.

What operator level grants /op?

The one set in op-permission-level in server.properties, defaulting to 4, meaning all commands. To prevent assistants from stopping the server, levels 2 or 3 are set.

What can a moderator (level 1) do?

No team: in 26.3, there are no level 1 commands. However, spawn protection applies to it as to any operator.

More in the wiki

Data from Minecraft 26.3: Launcher manifest from Mojang, version.json inside each client version, and server.properties, which the server itself creates.