How to give a player OP on a Minecraft server

Instructions on how to grant administrator privileges (OP) to yourself or another player and what the consequences are.

2 min read
#minecraft#op#admin#permissions

A player with the OP (Operator) level has maximum permissions on a Minecraft server. They can use administrator commands, change game modes, give items, and ban others. Therefore, hand out this power very carefully.

Adding OP via the panel console (Recommended)

The safest and most reliable way to set permissions.

  1. Go to the Pterodactyl game panel and click on your server.
  2. Select the 'Console' tab. Make sure the server is currently running.
  3. Type the command into the line at the bottom (without a slash, slashes are not typed in the console):
bash
op <player_nick>

Replace <player_nick> with the name of the player you want to grant permissions to. For example:

bash
op Steve

The player will see the message 'You are now server operator' in the game.

Removing OP

If you want to take the permissions away from the player, simply type the deop command into the console:

bash
deop Steve

Setting OP levels (Server.properties)

If you don't want the operator to have absolutely all permissions (for example, to prevent them from stopping the server), you can limit this in the server.properties file by setting the op-permission-level:

  • Level 1: Can bypass spawn protection.
  • Level 2: Can use /clear, /difficulty, /effect, /gamemode, /gamerule, /give, and command blocks.
  • Level 3: Can use /ban, /deop, /kick, and /op.
  • Level 4: (Default) Has access to everything including the /stop command.

Didn't find what you were looking for? Contact us.