Minecraft:Commands/op: Difference between revisions
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 7: | Line 7: | ||
}} | }} | ||
Grants operator status to the player(s). | Grants [[Minecraft:operator]] status to the player(s). | ||
{{ | {{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]]. | ||
{{ | {{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 == | ||
{{ | {{argument|targets|game_profile|player: target|CommandSelector<Player>}} | ||
: Specifies the player to be granted op. | : Specifies the player to be granted op. | ||
: {{ | : {{IN|java}}: | ||
:: {{ | :: {{arg desc|je=game_profile}} | ||
: {{ | : {{IN|bedrock}}: | ||
:: {{ | :: {{arg desc|be=player}} | ||
==Result== | ==Result== | ||
| Line 42: | Line 42: | ||
== Output == | == Output == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|N/A|0|0}} | ||
{{ | {{Output table|On success|N/A|1|the number of players who are newly granted op}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|java classic}} | ||
|{{HistoryLine||0.0.16a|Added {{ | |{{HistoryLine||0.0.16a|Added {{cmd|op|link=none}}.}} | ||
|{{ | |{{HistoryLine|java indev}} | ||
|{{ | |{{HistoryLine||0.31|Due to Indev's lack of support for servers, commands are no longer usable.}} | ||
|{{ | |{{HistoryLine|java alpha}} | ||
|{{HistoryLine||v1.0.16|Re-added {{ | |{{HistoryLine||v1.0.16|Re-added {{cmd|op|link=none}}.}} | ||
|{{ | |{{HistoryLine|java}} | ||
|{{ | |{{HistoryLine||1.13|dev=17w45a|Now allows target selectors besides names.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.16.0|dev=build 1|Added {{ | |{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|op|link=none}}.}} | ||
}} | }} | ||
| Line 77: | Line 77: | ||
== Navigation == | == Navigation == | ||
{{ | {{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
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
- Specifies the player to be granted op.
- Template:IN:
- Template:IN:
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
Bedrock Edition
Example
- Give Steve OP:/op Steve
See also
/deop: Revokes operator status from a player.
External links
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