How to Use the Op Command in Minecraft
This Minecraft tutorial explains how to use the /op command with screenshots and step-by-step instructions.
The /op command is used to give a player operator status. When a player has been granted operator status, they can run game commands such as changing the gamemode, time, weather, etc (see also /deop command).
Let's explore how to use this game command.
Supported Platforms
The /op command is available in the following versions of Minecraft:
Platform | Supported (Version*) |
Java Edition (PC/Mac) | Yes |
Pocket Edition (PE) | Yes (0.16.0) |
Xbox 360 | No |
Xbox One | Yes (1.2) |
PS3 | No |
PS4 | Yes (1.14.0) |
Wii U | No |
Nintendo Switch | Yes (1.5.0) |
Windows 10 Edition | Yes (0.16.0) |
Education Edition | Yes |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run server commands such as the /op command, you have to first create a multiplayer server in Minecraft and be the operator of that server.
Op Command
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Op Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), the syntax to give a player operator status is:
/op <player>
Definitions
- player is the name of the player that you want to give operator status on the Minecraft server.
TIP: The player does not have to be online when you give them operator status using the /op command as a server command in Minecraft Java Edition (PC/Mac).
Op Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), the syntax to give a player operator status is:
/op <player>
Definitions
- player is the name of the player (or a target selector) who will be given operator status on the current Minecraft world.
TIP: The player must be joined to the Minecraft world when you grant them operator status using the /op command in Minecraft PE.
Op Command in Minecraft Xbox One Edition
In Minecraft Xbox One Edition, the syntax to give a player operator status is:
/op <player>
Definitions
- player is the name of the player (or a target selector) who will be given operator status on the current Minecraft world.
TIP: The player must be joined to the Minecraft world when you grant them operator status using the /op command in Minecraft Xbox One Edition.
Op Command in Minecraft PS4 Edition
In Minecraft PS4 Edition, the syntax to give a player operator status is:
/op <player>
Definitions
- player is the name of the player (or a target selector) who will be given operator status on the current Minecraft world.
TIP: The player must be joined to the Minecraft world when you grant them operator status using the /op command in Minecraft PS4 Edition.
Op Command in Minecraft Nintendo Switch Edition
In Minecraft Nintendo Switch Edition, the syntax to give a player operator status is:
/op <player>
Definitions
- player is the name of the player (or a target selector) who will be given operator status on the current Minecraft world.
TIP: The player must be joined to the Minecraft world when you grant them operator status using the /op command in Minecraft Nintendo Switch Edition.
Op Command in Minecraft Windows 10 Edition
In Minecraft Windows 10 Edition, the syntax to give a player operator status is:
/op <player>
Definitions
- player is the name of the player (or a target selector) who will be given operator status on the current Minecraft world.
TIP: The player must be joined to the Minecraft world when you grant them operator status using the /op command in Minecraft Windows 10 Edition.
Op Command in Minecraft Education Edition
In Minecraft Education Edition, the syntax to give a player operator status is:
/op <player>
Definitions
- player is the name of the player (or a target selector) who will be given operator status on the current Minecraft world.
TIP: The player must be joined to the Minecraft world when you grant them operator status using the /op command in Minecraft Education Edition.
Examples
- Java
- PE
- Xbox
- PS
- Nintendo
- Win10
- Edu
Example in Java Edition (PC/Mac)
To give operator status to the player named DigMinecraft in Minecraft Java Edition (PC/Mac):
/op DigMinecraft
To give operator status to the player named Axe2Grind:
/op Axe2Grind
Example in Pocket Edition (PE)
To give operator status to the player named Axe2Grind in Minecraft PE:
/op Axe2Grind
To give operator status to all players:
/op @a
Example in Xbox One Edition
To give operator status to the player named TheEarthMover in Minecraft Xbox One Edition:
/op TheEarthMover
To give operator status to the nearest player:
/op @p
Example in PS4 Edition
To give operator status to the player named DigMinecrarft in Minecraft PS4 Edition:
/op DigMinecraft
To give operator status to the nearest player:
/op @p
Example in Nintendo Switch Edition
To give operator status to the player named DigMinecraft in Minecraft Nintendo Switch Edition:
/op DigMinecraft
To give operator status to a random player:
/op @r
Example in Windows 10 Edition
To give operator status to the player named TheExcavator in Minecraft Windows 10 Edition:
/op TheExcavator
To give operator status to a the nearest player:
/op @p
Example in Education Edition
To give operator status to the player named TheEarthMover in Minecraft Education Edition:
/op TheEarthMover
To give operator status to a random player:
/op @r
How to Enter the Command
1. Open Server Console or Chat Window
To run this type of command, you must either open a server console or chat window, depending on your version of Minecraft:
- For Java Edition (PC/Mac), open a server console. Use Command Prompt in Windows or Terminal on a Mac.
- For Pocket Edition (PE), tap on the chat button at the top of the screen.
- For Xbox One, press the D-Pad (right) on the controller.
- For Nintendo Switch, press the right arrow button on the controller.
- For Windows 10 Edition, press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
In this example, we will give the player named DigMinecraft operator status with the following command:
/op DigMinecraft
In this tutorial, we have entered the command in PC/Mac as a server command (see below). In other versions of Minecraft (such as PE, Windows 10 and Education Edition), you can enter the command in the Chat window:
You should see the message "Opped DigMinecraft" appear in the server console. Once the command has been entered, the "opped" player will be allowed to run game commands on this Minecraft server.
TIP: Use the
/deop command to remove the operator status from a player.
Congratulations, you just learned how to use the /op command in Minecraft!
Other Server Commands
Here are some other server commands you can use in Minecraft: