How do you set up a whitelist on a Minecraft server?
Short answer
In the server console, run whitelist on, then whitelist add PlayerName for each friend. Only players on the list can join. EnderPanel has a guest list on the Players tab that does the same with a switch.
With commands
whitelist onturns it on.whitelist add Namelets a player in;whitelist remove Nametakes them off.whitelist listshows who's on it;whitelist reloadrereads the file.
Type these in the server console without the slash, or in the game with a slash as an operator.
In the settings file
In server.properties, set white-list=true and enforce-whitelist=true (which removes anyone online who isn't on the list), then restart. The list itself lives in whitelist.json.
Why use one
Anyone with your address can try to join. A whitelist makes sure only your friends can, which matters most when your server is open to the internet.
Quick questions
Do Bedrock players work with a whitelist?
With Floodgate, yes, but their names usually start with a dot, like .Steve.
Does a whitelist stop griefing?
It stops strangers. For trusted friends you may still want backups.
I'm locked out of my own server.
Add yourself from the server console: whitelist add YourName.
Back to the website