Minecraft:Commands/op: Difference between revisions
More actions
imported>ProBot m Bot: Adding ko:명령어/op |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 7: | Line 7: | ||
}} | }} | ||
Grants | Grants 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]]. | ||
{{ | {{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 == | ||
{{ | {{MC/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}}: | ||
:: {{ | :: {{MC/Arg desc|je=game_profile}} | ||
: {{ | : {{MC/In|bedrock}}: | ||
:: {{ | :: {{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 {{ | |{{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 {{ | |{{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 {{ | |{{HistoryLine||v0.16.0|dev=build 1|Added {{MC/Cmd|op|link=none}}.}} | ||
}} | }} | ||
| Line 77: | Line 77: | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/op | |||
es:Comandos/op | |||
ja:コマンド/op | |||
ko:명령어/op | |||
lzh:令/op | |||
pt:Comandos/op | |||
ru:Команды консоли/op | |||
uk:Команди консолі/op | |||
zh:命令/op | |||
Latest revision as of 20:12, 9 April 2026
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
- 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
Bedrock Edition
Example
- Give Steve OP:/op Steve
See also
/deop: Revokes operator status from a player.
External links
de:Befehl/op es:Comandos/op ja:コマンド/op ko:명령어/op lzh:令/op pt:Comandos/op ru:Команды консоли/op uk:Команди консолі/op zh:命令/op