/deop
< Commands
/deop| Permission level required |
|
|---|---|
| Restrictions |
Dedicated server only |
{
"title": "<code>/deop</code>",
"rows": [
{
"field": "\n* 3 <sup class=\"noprint 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=\"noprint 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=\"noprint 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": []
}
Revokes operator status from a player.
Syntax
- Java Edition
deop <targets>
- Bedrock Edition
deop <player: target>
Arguments
JE: <targets>: game_profile
BE: player: target: CommandSelector<Player>
- Specifies the player to be deopped.
- In Java Edition, specifies one or more game profiles (player profiles). Must be a player name (should 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.
Result
| 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 selected players meet one or both of the following conditions:
| Failed | ||
| Otherwise | Successful | ||
Output
| 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 whose op status is revoke |
Examples
- To remove Steve from the list of operators:
deop Steve
See also
History
| Java Edition Classic | |||||||
|---|---|---|---|---|---|---|---|
| 0.0.15a (Multiplayer Test 3) | Added /deop. | ||||||
| Java Edition Indev | |||||||
| 0.31 | Removed all commands. | ||||||
| Java Edition Alpha | |||||||
| v1.0.16 | Re-added /deop. | ||||||
| Pocket Edition Alpha | |||||||
| v0.16.0 | build 1 | Added /deop. | |||||