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/whitelist: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Remove broken links to missing pages
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
Line 11: Line 11:
Used to manage server whitelists.
Used to manage server whitelists.


{{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>whitelist.json</code> or <code>allowlist.json</code>{{only|bedrock}} configuration file.
{{MC/In|java}}, server operators can ''always'' connect when the whitelist is active, even if their profiles do not appear in the whitelist. {{MC/In|bedrock}}, players ''must'' be whitelisted regardless of operator status. The profiles of the whitelisted players are stored in the <code>whitelist.json</code> or <code>allowlist.json</code>{{only|bedrock}} configuration file.


== Syntax ==
== Syntax ==
:<code>whitelist add <targets></code> ({{el|je}})
:<code>whitelist add <targets></code> ({{MC/El|je}})
:<code>allowlist add <name: string></code> ({{el|be}})
:<code>allowlist add <name: string></code> ({{MC/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 {{in|be}}.
::Disables the server's use of a whitelist. Not implemented {{MC/In|be}}.
:<code>whitelist on</code>
:<code>whitelist on</code>
::Enables the server's use of a whitelist. Not implemented {{in|be}}.
::Enables the server's use of a whitelist. Not implemented {{MC/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> ({{el|je}})
:<code>whitelist remove <targets></code> ({{MC/El|je}})
:<code>allowlist remove <name: string></code> ({{el|be}})  
:<code>allowlist remove <name: string></code> ({{MC/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}}
{{MC/El|je|short=1}}: {{MC/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}}
:{{MC/Arg desc|je=game_profile}}


{{el|be|short=1}}: {{argument|be=1|name: string|basic_string}}
{{MC/El|be|short=1}}: {{MC/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}}
:{{MC/Arg desc|be=string}}


== Result ==
== Result ==
Line 50: Line 50:


== 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|cmd=/whitelist on<br>/whitelist off<br>/whitelist reload|On success|N/A|1|1}}
{{MC/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.}}
{{MC/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.}}
{{MC/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.}}
{{MC/Output table|cmd=/whitelist remove <targets>|On success|N/A|1|the number of player profiles removed from the whitelist.}}
{{Output table}}
{{MC/Output table}}


== History ==
== History ==
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|Java Beta}}
|{{MC/HistoryLine|Java Beta}}
|{{HistoryLine||1.3|Added {{cmd|link=none|whitelist}}.}}
|{{HistoryLine||1.3|Added {{MC/Cmd|link=none|whitelist}}.}}
}}
}}


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
{{HistoryTable
{{HistoryTable
|{{HistoryLine|bedrock}}
|{{MC/HistoryLine|bedrock}}
|{{HistoryLine||1.16.0|dev=release|Added {{cmd|whitelist|link=none}}.}}
|{{HistoryLine||1.16.0|dev=release|Added {{MC/Cmd|whitelist|link=none}}.}}
|{{HistoryLine||1.17.0|dev=beta 1.16.230.50|Renamed to {{cmd|allowlist|link=none}}.}}
|{{HistoryLine||1.17.0|dev=beta 1.16.230.50|Renamed to {{MC/Cmd|allowlist|link=none}}.}}
|{{HistoryLine|||dev=release|Reverted back to {{cmd|whitelist|link=none}}.}}  
|{{HistoryLine|||dev=release|Reverted back to {{MC/Cmd|whitelist|link=none}}.}}  
|{{HistoryLine||1.18.10|dev=release|Renamed to {{cmd|allowlist|link=none}}.}}
|{{HistoryLine||1.18.10|dev=release|Renamed to {{MC/Cmd|allowlist|link=none}}.}}
}}
}}


Line 78: Line 78:


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


de:Befehl/whitelist
de:Befehl/whitelist

Latest revision as of 20:15, 9 April 2026

Template:Infobox command

Used to manage server whitelists.

in Template:Editions, server operators can always connect when the whitelist is active, even if their profiles do not appear in the whitelist. in Template:Editions, players must be whitelisted regardless of operator status. The profiles of the whitelisted players are stored in the whitelist.json or allowlist.jsonTemplate:Only configuration file.

Syntax

whitelist add <targets> (
  1. REDIRECT Template:Edition

Template:Rcat)

allowlist add <name: string> (
  1. REDIRECT Template:Edition

Template:Rcat)

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 in Template:Editions.
whitelist on
Enables the server's use of a whitelist. Not implemented in Template:Editions.
whitelist reload
Reloads the list of player profiles in whitelist.json or allowlist.jsonTemplate:Only from disk (used when whitelist.json has been modified outside of Minecraft).
whitelist remove <targets> (
  1. REDIRECT Template:Edition

Template:Rcat)

allowlist remove <name: string> (
  1. REDIRECT Template:Edition

Template:Rcat)

Removes player profile(s) from the whitelist. The player does not need to be online.

Arguments

  1. REDIRECT Template:Edition

Template:Rcat: <targets>: game_profile

Specifies the player profile(s) to be added into or removed from the whitelist.
{{#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|}}
  1. REDIRECT Template:Edition

Template:Rcat: name: string: basic_string

Specifies the player name(s) to be added into or removed from the whitelist.
{{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|string}}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 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}}|1}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/whitelist on
/whitelist off
/whitelist reload
}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#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 player profiles in the list.}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/whitelist list}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#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 new player profiles added to the whitelist.}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/whitelist add <targets>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#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 player profiles removed from the whitelist.}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/whitelist remove <targets>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#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

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/whitelist ja:コマンド/whitelist pt:Comandos/whitelist ru:Команды консоли/whitelist zh:命令/whitelist