Grants operator status to a player.
- Java Edition
- Bedrock Edition
op <player: target>
- Specified the player to be granted op.
- In Java Edition, must be a collection of game profiles (player profiles), which can be a player name (must be a real one if the server is in online mode), or a player-type target selector.
- In Bedrock Edition, must be a player name or a target selector. And the target selector must be of player type.
|Command||Trigger||Java Edition||Bedrock Edition|
|any||the arguments are not specified correctly||Unparseable||Failed|
|all specified players are already op or higher.||Failed|
|On success||Grants target(s) operator status.|
|any||Java Edition||On fail||N/A||0||0|
|On success||N/A||1||the number of players who are newly granted op|
|Java Edition Classic|
|0.0.15a (Multiplayer Test 3)||Added |
|Java Edition Indev|
|0.31||Removed all commands.|
|Java Edition Alpha|
|Pocket Edition Alpha|
|v0.16.0||build 1||Added |