Skip to main content

/whitelist

Manages the server whitelist. When enabled, only whitelisted players can join the server.

Category
Server
Permission Level
Admin
Version Added
1.0

Syntax

/whitelist <add|list|off|on|reload|remove> [<targets>]

Parameters

NameTypeRequiredDescription
actionliteralRequiredon/off = enable/disable whitelist; add/remove = manage players; list = show whitelisted players; reload = reload from file.
targetsgame_profileOptionalThe player for add/remove actions.

Examples

/whitelist on

Enables the server whitelist.

/whitelist add Steve

Adds Steve to the whitelist.

/whitelist list

Displays all whitelisted players.

Common Mistakes

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