/whitelist
Manages the server whitelist. When enabled, only whitelisted players can join the server.
Syntax
/whitelist <add|list|off|on|reload|remove> [<targets>]Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | literal | Required | on/off = enable/disable whitelist; add/remove = manage players; list = show whitelisted players; reload = reload from file. |
| targets | game_profile | Optional | The player for add/remove actions. |
Examples
/whitelist onEnables the server whitelist.
/whitelist add SteveAdds Steve to the whitelist.
/whitelist listDisplays all whitelisted players.
Common Mistakes
- Turning on the whitelist without adding yourself first, you may lock yourself out if you disconnect.
- Not using /whitelist reload after manually editing whitelist.json, changes from file edits do not apply until reloaded.
Notes
Players already connected are not kicked when the whitelist is enabled. Use 'enforce-whitelist=true' in server.properties to kick non-whitelisted players when the whitelist is reloaded.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting