![]() |
VOOZH | about |
/op| Permission level required |
|
|---|---|
| Restrictions | Dedicated server only[JE only] |
{
"title": "<code>/op</code>",
"rows": [
{
"field": "\n* 3 <sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Java Edition\">(link to Java Edition article, displayed as JE) only</span></i>]</sup>\n* 2 <sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as BE) only</span></i>]</sup>",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "Dedicated server only<sup class=\" nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Java Edition\">(link to Java Edition article, displayed as JE) only</span></i>]</sup>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Grants operator status to the player(s).
In Java Edition, adds the players into the ops.json file with the default op permission level specified by op-permission-level in the server.properties.
In Bedrock Edition, changes the player's permission in the "Player Permission" screen to the "Operator" option . In dedicated servers, it is also recorded in permissions.json. The permissions.json file can be reloaded with /permission command.
op <targets>op <player: target>JE: <targets>: game_profile
BE: player: target: CommandSelector<Player>
| Command | Trigger | Java Edition | Bedrock Edition |
|---|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable | Unparseable |
<targets> fails to resolve to one or more player profiles. | Failed | N/A | |
player: target is a target selector that is not in player type. | N/A | Failed | |
player: target fails to resolve to one or more online players. | |||
| All the specified players are already an op or higher. | Failed | ||
| Otherwise | Successful | ||
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| 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.16a | Added /op. | ||||||
| Java Edition Indev | |||||||
| 0.31 | Due to Indev's lack of support for servers, commands are no longer usable. | ||||||
| Java Edition Alpha | |||||||
| v1.0.16 | Re-added /op. | ||||||
| Java Edition | |||||||
| 1.13 | 17w45a | Now allows target selectors besides names. | |||||
| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.16.0 | build 1 | Added /op. | |||||
/deop: Revokes operator status from a player.
/op Command" – Microsoft Learn, October 11, 2023.