Manages the server whitelist — a list of players who are allowed to connect to the server when whitelist enforcement is enabled.
/whitelist on /whitelist off /whitelist list /whitelist add <targets> /whitelist remove <targets> /whitelist reload
| Name | Required | Description |
|---|---|---|
| targets | Yes (add/remove) | The player(s) to add or remove from the whitelist. |
/whitelist on /whitelist add Steve /whitelist remove Alex /whitelist list /whitelist reload
whitelist.json on the server./whitelist on enables enforcement — only whitelisted players can join./whitelist off disables enforcement — all players can join./whitelist reload reloads the whitelist file from disk, useful if the file was edited manually.This command is not usable from command blocks. It is a server-operator-only command.