Skip to content

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.

  1. Open your Minecraft server’s console.

  2. 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 YourName
    whitelist add FriendName
  3. 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.

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.

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.

whitelist.json
[
{
"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.

Stuck on something? Ask our Discord flock, where fellow server administrators are happy to help.