Manages the server whitelist.
Server ops can always connect when the whitelist is active, even if their names do not appear in the whitelist. The usernames of the whitelisted players are stored in the whitelist.json configuration file.
- The command has six variations.
whitelist add <player>
whitelist remove <player>
- player (
- Specifies the player(s) to add or remove from the whitelist.
- Fails if the arguments are not specified correctly, or if player doesn't exist
- On success:
add— Adds the player name to the whitelist. The player does not need to be online.
list— Displays all player names in the whitelist.
off— Disables the server's use of a whitelist.
on— Enables the server's use of a whitelist.
reload— Reloads the list of player names in
white-list.txt(1.7.5 or earlier) or
whitelist.json(1.7.6 or later) from disk (used when
whitelist.jsonhas been modified outside of Minecraft).
remove— Removes the player name from the whitelist. The player does not need to be online.
|Java Edition Beta|