Manage Your Server Player Whitelist
The /whitelist command in Minecraft Java Edition lets server admins control which players are allowed to join the server. You can turn the whitelist feature on or off, add or remove specific players, view everyone currently on the list, or reload the list.
Server owners use this command when they want to keep a server private for friends or approved community members. You need Level 3 (Server admin) permission to run any form of this command.
/whitelist add <targets>/whitelist list/whitelist off/whitelist on/whitelist reload/whitelist remove <targets>/whitelist add <targets>/whitelist remove <targets>/whitelist list/whitelist on/whitelist off/whitelist reload| Argument | Type | What it means |
|---|---|---|
<targets> | player | Specifies the player or players to add or remove, using either a direct player name or a target selector that matches players. |
/whitelist onTurns the server whitelist on immediately.
/whitelist add AlexAdds the player named Alex to the whitelist.
/whitelist remove SteveRemoves the player named Steve from the whitelist.
/whitelist listShows the current list of all whitelisted players in the chat.
/whitelist add @aAdds all players who are currently online to the whitelist at once.
/whitelist remove @pRemoves the nearest player from the whitelist.
/whitelist reloadReloads the whitelist to apply any external changes.
/whitelist offTurns the whitelist off so unapproved players can join again.
Measured from the game files of every Java release from 1.13 to 26.3.
In Minecraft Bedrock Edition, this command is called /allowlist instead of /whitelist, and it uses the syntax /allowlist <action: AllowListAction> [name: string].
Type /whitelist on in the game chat or server console with Level 3 admin permissions to enable the whitelist.
Run the command /whitelist list to view the names of all players currently approved to join.
Bedrock Edition uses the /allowlist command with the syntax /allowlist <action: AllowListAction> [name: string].
/ban/ban-ip/banlist/datapack/deop/fetchprofile/kick/list/op/pardon/pardon-ip/publish/reload/save-all/save-off/save-on