Turn it on
Run whitelist on in the server console, or /whitelist on in game as an operator. This sets white-list=true in server.properties for you. Add yourself and your staff straight away. Operators can join even when they are not listed, but relying on that makes the list confusing to manage, so keep everyone who should have access on it.
The commands
Use these in the console without the slash, or in game with it:
- whitelist add <name>: allow a player
- whitelist remove <name>: remove a player
- whitelist list: show everyone on the list
- whitelist reload: re-read whitelist.json after editing it by hand
- whitelist off: open the server to everyone again
enforce-whitelist
Removing someone from the whitelist does not kick them if they are already online. Set enforce-whitelist=true in server.properties and the server removes anyone who is no longer listed as soon as the whitelist is reloaded or changed.
Whitelisting from the panel
On StormNodes, the Players section has a Whitelist page where you can add and remove names without typing commands. It edits the same list the server uses.
Fixing "You are not white-listed on this server"
Check the spelling of the name; whitelist add looks the player up by their exact Minecraft username. If the player recently changed their name, add the new one. Bedrock players joining through Geyser and Floodgate have a prefix in front of their name, usually a dot, and Floodgate has its own whitelist command for them: fwhitelist add <name>.
On an offline-mode server, the whitelist matches a different UUID from the online one, so names added while online-mode was true may not match. This is one more reason to keep online-mode on.