Setting Up a Whitelist
A whitelist is the list of players who are allowed to join your Minecraft server. Once it’s turned on, everyone else is turned away, even if they know your server’s address.
Turning on the whitelist
Section titled “Turning on the whitelist”-
Open your Minecraft server’s console.
-
Add yourself and every player you want to let in. They don’t need to be online, or to have joined your server before.
whitelist add YourNamewhitelist add FriendName -
Turn on the whitelist. From now on, only players on it can join.
whitelist on
Server operators can always join, even if they aren’t on the whitelist.
Managing the whitelist
Section titled “Managing the whitelist”Run these commands in your Minecraft server’s console. In-game, put a / in front of each one.
| Command | What it does |
|---|---|
whitelist add <player> |
Adds a player to the whitelist. |
whitelist remove <player> |
Takes a player off the whitelist. |
whitelist list |
Shows everyone on the whitelist. |
whitelist reload |
Reloads whitelist.json after you’ve edited it by hand. |
whitelist on |
Turns the whitelist on. |
whitelist off |
Turns the whitelist off, letting anyone join again. |
Taking a player off the whitelist doesn’t kick them if they’re online. They just can’t join again once they leave. To have players kicked as soon as they’re taken off the whitelist, stop your server, set enforce-whitelist=true in server.properties, and start it again.
Editing the whitelist file
Section titled “Editing the whitelist file”The whitelist is saved in whitelist.json, in your Minecraft server’s root file directory. Every player on it has an entry with their name and the unique ID (UUID) of their Minecraft account.
[ { "uuid": "0f1e2d3c-4b5a-4968-8776-655443322110", "name": "YourName" }]whitelist add looks up the UUID for you, so it’s the easier way. If you do edit the file, run whitelist reload in your console afterwards to apply your changes.