Skip to content
Back to Homepage

How to Add a Player as OP in Minecraft

How to Set and Remove OP on Your Minecraft Server

Section titled “How to Set and Remove OP on Your Minecraft Server”

An operator (OP) is a player with special permissions on your server, such as running admin commands. This guide shows you how to give a player OP, how to remove it, and what each OP level allows.

  • Access to the AleForge Panel
  • The exact Minecraft username of the player

Tip: Only give OP to people you trust. Operators can change your world and your server settings.

  1. Head to the AleForge Panel and select your server.
  2. Go to the Console page.
  3. In the console, type the following and press Enter:
op <playername>
  1. You will see a message confirming that the player is now an operator.
  2. You can also do this in-game by typing the command with a / at the start:
/op <playername>

You must already be an operator to use this command in-game.

  1. Head to the AleForge Panel and select your server.
  2. Go to the Console page.
  3. In the command line, type the following and press Enter:
deop <playername>
  1. You will see a message confirming that the player is no longer an operator.
  2. You can also do this in-game by typing:
/deop <playername>

You must already be an operator to use this command in-game.

Replace <playername> with the player’s exact Minecraft username, without the < and > symbols.

Action Console In-game
Give OP op <playername> /op <playername>
Remove OP deop <playername> /deop <playername>

OP levels decide what an operator can do. Each level includes everything from the levels before it. For example, level 3 also has the commands and abilities of levels 2 and 1.

OP Level Permissions
Level 1 Lets operators bypass the default spawn protection. This is the lowest level of OP and includes no commands.
Level 2 Operators can use these commands: /gamerule, /give, /effect, /clear, /difficulty, /summon, /tp, /gamemode, and /setblock. They can also edit command blocks.
Level 3 Operators can use these commands: /ban, /kick, /deop, and /op.
Level 4 The highest level of OP. It lets operators use the /stop command.

Version note: OP permission levels were introduced during the development of 1.7.10, so they do not apply to any version before 1.7.10.

Problem What to try
The command says the player can’t be found Check that the username is spelled exactly right, with the same capital letters.
The /op command doesn’t work in-game You must already be an operator, and have a high enough OP level, to run it. Use the console instead.
The player can’t use a command Their OP level may be too low for that command. See the table above.
Changes didn’t apply Have the player leave and rejoin the server.

AleForge provides game server hosting with an easy-to-use control panel and a support team ready to help. Explore our Minecraft server hosting or open the AleForge Panel to manage your server.