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
imported>ProBot
m Bot: Adding ko:명령어/op
 
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
}}
}}


Grants [[Minecraft:operator]] status to the player(s).
Grants 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]].
{{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|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.
{{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.


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


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


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


{{Output table}}
{{MC/Output table}}
{{Output table|edition=je|On fail|N/A|0|0}}
{{MC/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}}
{{MC/Output table|On success|N/A|1|the number of players who are newly granted op}}
{{Output table}}
{{MC/Output table}}


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


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


Line 77: Line 77:


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


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

Latest revision as of 20:12, 9 April 2026

Template:Infobox command

Grants operator status to the player(s).

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

in Template:Editions, 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

  1. REDIRECT Template:Command

Template:Redr command.

Syntax

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

Arguments

Template:El<targets>: game_profile
Template:El: player: target: CommandSelector<Player>

Specifies the player to be granted op.
in Template:Editions:
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|game_profile}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
in Template:Editions:
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|inapplicability}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

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

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|N/A}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|N/A}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the number of players who are newly granted op}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

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

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

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