Minecraft:Commands/whitelist: Difference between revisions
More actions
Fix template calls: add MC/ prefix |
Sync: updated from Minecraft |
||
| Line 5: | Line 5: | ||
* 3 {{only|java|short=1}} | * 3 {{only|java|short=1}} | ||
* 4 {{only|bedrock|short=1}} | * 4 {{only|bedrock|short=1}} | ||
|others=Cheat only{{only|bedrock|short=1}} | |others=[[Minecraft:Cheat]] only{{only|bedrock|short=1}} | ||
|serveronly=y | |serveronly=y | ||
}} | }} | ||
Used to manage server | Used to manage server [[Minecraft:whitelist]]s. | ||
{{ | {{IN|java}}, server operators can ''always'' connect when the whitelist is active, even if their profiles do not appear in the whitelist. {{IN|bedrock}}, players ''must'' be whitelisted regardless of operator status. The profiles of the whitelisted players are stored in the <code>[[Minecraft:whitelist.json]]</code> or <code>allowlist.json</code>{{only|bedrock}} configuration file. | ||
== Syntax == | == Syntax == | ||
:<code>whitelist add <targets></code> ({{ | :<code>whitelist add <targets></code> ({{el|je}}) | ||
:<code>allowlist add <name: string></code> ({{ | :<code>allowlist add <name: string></code> ({{el|be}}) | ||
:: Adds player profile(s) into the whitelist. The player does not need to be online. | :: Adds player profile(s) into the whitelist. The player does not need to be online. | ||
:<code>whitelist list</code> | :<code>whitelist list</code> | ||
::Displays all player profiles in the whitelist. | ::Displays all player profiles in the whitelist. | ||
:<code>whitelist off</code> | :<code>whitelist off</code> | ||
::Disables the server's use of a whitelist. Not implemented {{ | ::Disables the server's use of a whitelist. Not implemented {{in|be}}. | ||
:<code>whitelist on</code> | :<code>whitelist on</code> | ||
::Enables the server's use of a whitelist. Not implemented {{ | ::Enables the server's use of a whitelist. Not implemented {{in|be}}. | ||
:<code>whitelist reload</code> | :<code>whitelist reload</code> | ||
::Reloads the list of player profiles in <code>whitelist.json</code> or <code>allowlist.json</code>{{only|bedrock}} from disk (used when <code>whitelist.json</code> has been modified outside of ''Minecraft''). | ::Reloads the list of player profiles in <code>whitelist.json</code> or <code>allowlist.json</code>{{only|bedrock}} from disk (used when <code>whitelist.json</code> has been modified outside of ''Minecraft''). | ||
:<code>whitelist remove <targets></code> ({{ | :<code>whitelist remove <targets></code> ({{el|je}}) | ||
:<code>allowlist remove <name: string></code> ({{ | :<code>allowlist remove <name: string></code> ({{el|be}}) | ||
::Removes player profile(s) from the whitelist. The player does not need to be online. | ::Removes player profile(s) from the whitelist. The player does not need to be online. | ||
== Arguments == | == Arguments == | ||
{{ | {{el|je|short=1}}: {{argument|targets|game_profile}} | ||
:Specifies the player profile(s) to be added into or removed from the whitelist. | :Specifies the player profile(s) to be added into or removed from the whitelist. | ||
:{{ | :{{arg desc|je=game_profile}} | ||
{{ | {{el|be|short=1}}: {{argument|be=1|name: string|basic_string}} | ||
:Specifies the player name(s) to be added into or removed from the whitelist. | :Specifies the player name(s) to be added into or removed from the whitelist. | ||
:{{ | :{{arg desc|be=string}} | ||
== Result == | == Result == | ||
| Line 50: | Line 50: | ||
== Output == | == Output == | ||
{{ | {{Output table}} | ||
{{ | {{Output table|edition=je|On fail|N/A|0|0}} | ||
{{ | {{Output table|cmd=/whitelist on<br>/whitelist off<br>/whitelist reload|On success|N/A|1|1}} | ||
{{ | {{Output table|cmd=/whitelist list|On success|N/A|1|the number of player profiles in the list.}} | ||
{{ | {{Output table|cmd=/whitelist add <targets>|On success|N/A|1|the number of new player profiles added to the whitelist.}} | ||
{{ | {{Output table|cmd=/whitelist remove <targets>|On success|N/A|1|the number of player profiles removed from the whitelist.}} | ||
{{ | {{Output table}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|Java Beta}} | ||
|{{HistoryLine||1.3|Added {{ | |{{HistoryLine||1.3|Added {{cmd|link=none|whitelist}}.}} | ||
|{{HistoryLine|upcoming java}} | |||
|{{HistoryLine||26.3|dev=snap2|Whitelist is now enabled by default.}} | |||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{ | |{{HistoryLine|bedrock}} | ||
|{{HistoryLine||1.16.0|dev=release|Added {{ | |{{HistoryLine||1.16.0|dev=release|Added {{cmd|whitelist|link=none}}.}} | ||
|{{HistoryLine||1.17.0|dev=beta 1.16.230.50|Renamed to {{ | |{{HistoryLine||1.17.0|dev=beta 1.16.230.50|Renamed to {{cmd|allowlist|link=none}}.}} | ||
|{{HistoryLine|||dev=release|Reverted back to {{ | |{{HistoryLine|||dev=release|Reverted back to {{cmd|whitelist|link=none}}.}} | ||
|{{HistoryLine||1.18.10|dev=release|Renamed to {{ | |{{HistoryLine||1.18.10|dev=release|Renamed to {{cmd|allowlist|link=none}}.}} | ||
}} | }} | ||
| Line 78: | Line 80: | ||
== Navigation == | == Navigation == | ||
{{ | {{Navbox commands}} | ||
de:Befehl/whitelist | [[Minecraft:de:Befehl/whitelist]] | ||
ja:コマンド/whitelist | [[Minecraft:ja:コマンド/whitelist]] | ||
pt:Comandos/whitelist | [[Minecraft:pt:Comandos/whitelist]] | ||
ru:Команды консоли/whitelist | [[Minecraft:ru:Команды консоли/whitelist]] | ||
zh:命令/whitelist | [[Minecraft:zh:命令/whitelist]] | ||
Revision as of 11:07, 1 July 2026
Used to manage server Minecraft:whitelists.
Template:IN, server operators can always connect when the whitelist is active, even if their profiles do not appear in the whitelist. Template:IN, players must be whitelisted regardless of operator status. The profiles of the whitelisted players are stored in the Minecraft:whitelist.json or allowlist.jsonTemplate:Only configuration file.
Syntax
whitelist add <targets>(Template:El)allowlist add <name: string>(Template:El)- Adds player profile(s) into the whitelist. The player does not need to be online.
whitelist list- Displays all player profiles in the whitelist.
whitelist off- Disables the server's use of a whitelist. Not implemented Template:In.
whitelist on- Enables the server's use of a whitelist. Not implemented Template:In.
whitelist reload- Reloads the list of player profiles in
whitelist.jsonorallowlist.jsonTemplate:Only from disk (used whenwhitelist.jsonhas been modified outside of Minecraft).
- Reloads the list of player profiles in
whitelist remove <targets>(Template:El)allowlist remove <name: string>(Template:El)- Removes player profile(s) from the whitelist. The player does not need to be online.
Arguments
Template:El: Template:Argument
- Specifies the player profile(s) to be added into or removed from the whitelist.
- Template:Arg desc
Template:El: Template:Argument
- Specifies the player name(s) to be added into or removed from the whitelist.
- 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 Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
History
Java Edition
Bedrock Edition
External links
Minecraft:de:Befehl/whitelist Minecraft:ja:コマンド/whitelist Minecraft:pt:Comandos/whitelist Minecraft:ru:Команды консоли/whitelist Minecraft:zh:命令/whitelist