A whitelist makes your server private: only players you've added can join.
Turn on the whitelist
- Stop your server.
- Open Properties, search for
white-list, and switch it on. - Search for
enforce-whitelist, and switch that on too. This kicks anyone online who isn't on the whitelist. - Click Save, then start your server.
Add and remove players
Open Console and type:
whitelist add Username: let a player inwhitelist remove Username: take them offwhitelist list: see who's on it
You can also see everyone on your whitelist in Players, under Whitelist.
Using crossplay?
The commands above are for Java Edition players. Add Bedrock players with fwhitelist instead:
fwhitelist add Usernamefwhitelist remove Username
If a name has a space in it, put it in quotes: fwhitelist add "Gamer Tag". Haven't set up crossplay yet? See Turn on crossplay.
Bedrock server?
Bedrock servers use an allowlist instead. See Turn on the allowlist on a Bedrock server.