Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/op: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 7: Line 7:
}}
}}


Grants operator status to the player(s).
Grants [[Minecraft:operator]] status to the player(s).


{{MC/In|java}}, adds the players into the ops.json file with the default op permission level specified by <code>op-permission-level</code> in the [[Minecraft:server.properties]].
{{IN|java}}, adds the players into the [[Minecraft:ops.json format|ops.json]] file with the default op permission level specified by <code>op-permission-level</code> in the [[Minecraft:server.properties]].


{{MC/In|bedrock}}, changes the player's permission in the "Player Permission" screen to the "Operator" option . In dedicated servers, it is also recorded in <samp>permissions.json</samp>. The <samp>permissions.json</samp> file can be reloaded with {{MC/Cmd|permission}} command.
{{IN|bedrock}}, changes the player's permission in the "Player Permission" screen to the "Operator" option . In [[Minecraft:BDS|dedicated servers]], it is also recorded in <samp>permissions.json</samp>. The <samp>permissions.json</samp> file can be reloaded with {{cmd|permission}} command.


==Syntax==
==Syntax==
Line 22: Line 22:


== Arguments ==
== Arguments ==
{{MC/Argument|targets|game_profile|player: target|CommandSelector<Player>}}
{{argument|targets|game_profile|player: target|CommandSelector<Player>}}
: Specifies the player to be granted op.
: Specifies the player to be granted op.
: {{MC/In|java}}:
: {{IN|java}}:
:: {{MC/Arg desc|je=game_profile}}
:: {{arg desc|je=game_profile}}
: {{MC/In|bedrock}}:
: {{IN|bedrock}}:
:: {{MC/Arg desc|be=player}}
:: {{arg desc|be=player}}


==Result==
==Result==
Line 42: Line 42:
== Output ==
== Output ==


{{MC/Output table}}
{{Output table}}
{{MC/Output table|edition=je|On fail|N/A|0|0}}
{{Output table|edition=je|On fail|N/A|0|0}}
{{MC/Output table|On success|N/A|1|the number of players who are newly granted op}}
{{Output table|On success|N/A|1|the number of players who are newly granted op}}
{{MC/Output table}}
{{Output table}}


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java classic}}
|{{HistoryLine|java classic}}
|{{HistoryLine||0.0.16a|Added {{MC/Cmd|op|link=none}}.}}
|{{HistoryLine||0.0.16a|Added {{cmd|op|link=none}}.}}
|{{MC/HistoryLine|java indev}}
|{{HistoryLine|java indev}}
|{{MC/HistoryLine||0.31|Due to Indev's lack of support for servers, commands are no longer usable.}}
|{{HistoryLine||0.31|Due to Indev's lack of support for servers, commands are no longer usable.}}
|{{MC/HistoryLine|java alpha}}
|{{HistoryLine|java alpha}}
|{{HistoryLine||v1.0.16|Re-added {{MC/Cmd|op|link=none}}.}}
|{{HistoryLine||v1.0.16|Re-added {{cmd|op|link=none}}.}}
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{MC/HistoryLine||1.13|dev=17w45a|Now allows target selectors besides names.}}
|{{HistoryLine||1.13|dev=17w45a|Now allows target selectors besides names.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|pocket alpha}}
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.16.0|dev=build 1|Added {{MC/Cmd|op|link=none}}.}}
|{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|op|link=none}}.}}
}}
}}


Line 77: Line 77:


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


de:Befehl/op
[[Minecraft:de:Befehl/op]]
es:Comandos/op
[[Minecraft:es:Comandos/op]]
ja:コマンド/op
[[Minecraft:fr:Commandes/op]]
ko:명령어/op
[[Minecraft:ja:コマンド/op]]
lzh:令/op
[[Minecraft:ko:명령어/op]]
pt:Comandos/op
[[Minecraft:lzh:令/op]]
ru:Команды консоли/op
[[Minecraft:pt:Comandos/op]]
uk:Команди консолі/op
[[Minecraft:ru:Команды консоли/op]]
zh:命令/op
[[Minecraft:uk:Команди консолі/op]]
[[Minecraft:zh:命令/op]]

Latest revision as of 11:04, 9 May 2026

Template:Infobox command

Grants Minecraft:operator status to the player(s).

Template:IN, adds the players into the ops.json file with the default op permission level specified by op-permission-level in the Minecraft:server.properties.

Template:IN, 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 Template:Cmd command.

Syntax

  • Java Edition
op <targets>
  • Bedrock Edition
op <player: target>

Arguments

Template:Argument

Specifies the player to be granted op.
Template:IN:
Template:Arg desc
Template:IN:
Template:Arg desc

Result

Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table

Output

Template:Output table Template:Output table Template:Output table Template:Output table

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

Example

  • Give Steve OP:/op Steve

See also

/deop: Revokes operator status from a player.

External links

Navigation

Template:Navbox commands

Minecraft:de:Befehl/op Minecraft:es:Comandos/op Minecraft:fr:Commandes/op Minecraft:ja:コマンド/op Minecraft:ko:명령어/op Minecraft:lzh:令/op Minecraft:pt:Comandos/op Minecraft:ru:Команды консоли/op Minecraft:uk:Команди консолі/op Minecraft:zh:命令/op