Our server Your next world? minecraft.pl Join
Discord
Our server Adventure? Jump in with us. minecraft.pl • Java & Bedrock Join the game
Servers - Administration

Minecraft server whitelist

A whitelist is the simplest way to limit access to your server to invited players only. Without one, anyone who knows the IP address can join. With one, only the players you put on the list can get in. Below you'll find everything: turning it on, commands, the JSON file, proxy setups and automation.

What a whitelist is

A whitelist (a list of allowed players) is a feature built into every Vanilla, Paper and Spigot server and their derivatives. It lets the admin name the specific players who are allowed to connect. Anyone who isn't on the list sees the message You are not whitelisted on this server! and the connection is refused before the world even loads.

The whitelist is independent of the ban system: a player can be on both the whitelist and the ban list. In that case the ban takes priority and the player can't join.

When should you use a whitelist? Mainly on private servers for friends, SMP (Survival Multiplayer) servers with a closed community, while testing new versions or configurations when you don't want strangers wandering in by accident, and on streamers' servers for their viewers.

Turning on the whitelist: server.properties

You turn on the whitelist in the server.properties file, which you'll find in the server's main folder. Open it in any text editor and find this line:

white-list=false

Change the value to true:

white-list=true

Save the file and restart the server. From then on, the whitelist is active. If the list is empty and there are no players in whitelist.json, nobody can join until you add someone to it.

Instead of editing the file by hand and restarting the server, you can use a console command that takes effect immediately:

/whitelist on

This command turns on the whitelist in real time without a restart and automatically updates the value in server.properties.

Important: With the default Paper/Spigot configuration, operators (OPs) are exempt from the whitelist. You can change this behavior in server.properties: enforce-whitelist=true enforces the whitelist even for OPs and, after you run /whitelist reload, kicks connected players who aren't on the list.

The enforce-whitelist option is especially useful when you want to be sure that no player, whatever their permissions, can get around the list.

Whitelist commands

The full set of whitelist commands is available from the server console (without the slash) or to players with operator permissions (with the slash). The required permission level is OP level 3.

/whitelist add

Adds a player to the whitelist. The player doesn't need to be connected to the server: you only need their username.

/whitelist add PlayerName

Once added, the player can join right away, with no restart or reload required. The server automatically saves the entry to the whitelist.json file.

/whitelist remove

Removes a player from the whitelist. If the player is currently connected, they're only locked out the next time they try to connect (or kicked immediately if you have enforce-whitelist=true turned on and use /whitelist reload).

/whitelist remove PlayerName

/whitelist list

Shows all players currently on the whitelist. With large lists, the output is paginated in the console.

/whitelist list

/whitelist on and /whitelist off

Turns the whitelist on or off in real time. It's the same as editing server.properties by hand, but without a restart.

/whitelist on
/whitelist off

/whitelist reload

Reloads the whitelist.json file from disk. This is useful when you edit the JSON file by hand instead of using commands: after editing, run reload so the changes take effect. With enforce-whitelist=true, it kicks players you've removed from the list off the server.

/whitelist reload

Tip: If a player's username contains a space (which is impossible in Minecraft, but happens with some cracked clients), use quotation marks: /whitelist add "Player Name". Premium servers don't have this problem.

The whitelist.json file

All whitelist entries are stored in the whitelist.json file in the server's main folder. The format is simple: an array of JSON objects, each with two fields, uuid and name.

[
  {
    "uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
    "name": "Notch"
  },
  {
    "uuid": "853c80ef-3c37-49fd-aa49-938b674adae6",
    "name": "Dinnerbone"
  }
]

The uuid field is the unique identifier of a Mojang account. On premium servers, the server fetches it automatically from the Mojang API when you add a player with the command. On offline-mode servers, the UUID is generated locally from the username.

You can edit the file by hand, for example when you need to add a lot of players at once. After editing, remember to run /whitelist reload or restart the server. If the file has a syntax error (a missing comma, an unclosed bracket), the server may fail to load the whitelist and treat it as empty.

Validate the JSON before uploading it to the server: you can use an online tool like jsonlint.com or the built-in validator in a code editor (VS Code, Notepad++). A syntax error in whitelist.json won't restart the server, but it will silently clear the list, letting everyone in or locking everyone out depending on your settings.

Adding players in bulk

If you want to add dozens of players at once, the easiest way is to prepare the JSON file by hand. You can get each player's UUID from https://api.mojang.com/users/profiles/minecraft/PlayerName: the endpoint returns an object with the fields id (the UUID without hyphens) and name. The UUID in the whitelist file must include hyphens (standard format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Whitelists on offline-mode servers

Servers running with online-mode=false (commonly called cracked or unofficial servers) don't verify accounts through Mojang's servers. That changes how the whitelist works in important ways.

On a premium server, a player's UUID is permanent and tied to their Mojang account: changing the username doesn't change the UUID. On an offline-mode server, the UUID is calculated locally with this formula: UUID.nameUUIDFromBytes("OfflinePlayer:" + nick). That means:

  • Changing the username = losing access. If a player changes their username, their offline UUID changes too. You have to add them to the whitelist again under the new username and remove the old entry.
  • Same username on different servers = same UUID. Unlike premium accounts, where the UUID is globally unique.
  • Impersonation. On an offline-mode server, a player can type any username, including the username of someone on the whitelist. The whitelist alone doesn't protect you from this: you need an authentication plugin (AuthMe, nLogin) as an extra layer.

Security warning: A whitelist on its own isn't enough protection for an offline-mode server. Always combine it with an authentication plugin (for example AuthMe Reloaded) that requires a password at login. Otherwise, anyone can type the username of a whitelisted player and get full access to that player's account on the server.

Whitelists on BungeeCord and Velocity

For servers running behind a proxy (BungeeCord, Waterfall, Velocity), the standard whitelist on the backend servers isn't enough as your only protection. A player can bypass the proxy and connect straight to a backend if they know its IP address and port.

Why the backends' native whitelist isn't enough

Picture a lobby server on port 25566 and a survival server on port 25567, both hidden behind BungeeCord on port 25565. If the backend ports are publicly reachable (a configuration mistake, but a common one), a player can connect directly to port 25567 and bypass all the proxy logic, including a whitelist set up in BungeeCord.

The correct setup

The first step is to block the backend ports in your firewall: they should only be reachable from loopback (127.0.0.1) or the local network, never from outside. Then you can set up a whitelist at the proxy level:

  • BungeeCord/Waterfall: The BungeeWhitelist or BungeeGuard plugin manages the list at the proxy level, before the player reaches any backend.
  • Velocity: The Velocity Whitelist plugin, or handling it with LuckPerms: a player without the right permission is refused when connecting to the proxy.
  • LuckPerms (both proxies): You can define a permission such as server.whitelist.allowed and require it from every player. No permission = kick with a message.

Per-server whitelists on a proxy network

If you want the different servers on your network (lobby, survival, minigames) to have separate lists of allowed players instead of one global list, use a plugin that supports per-server whitelists, such as MultiWhitelist for BungeeCord. That lets you run a lobby open to everyone and a survival server closed to everyone except selected players.

Automation: plugins and Discord bots

Adding players by hand with a command works great for small servers. For bigger projects or streamers' servers, where hundreds of players want access, it's worth automating the process.

Whitelist plugins with an application form

Plugins such as EasyWhitelist, WhitelistPlus and Whitelistify add a web panel or an in-game application system. The player fills in a form with their username, and the admin approves the application with one click, or the system adds the player automatically after verifying the account.

Discord bot with whitelist integration

The most popular solution on community servers is a Discord bot that manages the whitelist. The player types a command such as !whitelist PlayerName in a Discord channel, the bot checks the username through the Mojang API, checks the requirements (a Discord role, time on the server) and adds the player automatically through RCON or a REST API.

Popular Discord bots with this feature include Minecord, MCWhitelistBot and custom bots built on discord.js or discord.py with an RCON module. RCON (Remote Console) is a protocol that lets you run server commands remotely. Turn it on in server.properties:

enable-rcon=true
rcon.password=YourSecurePassword
rcon.port=25575

EssentialsX and player management

If you use EssentialsX, you have access to an extensive system of permissions and groups that can complement the whitelist. EssentialsX doesn't manage Minecraft's native whitelist, but through its integration with LuckPerms it lets you create your own access groups and join conditions.

Automatic whitelisting through Discord verification

An advanced flow looks like this: the player joins the server's Discord → passes verification (captcha, age, accepting the rules) → the bot automatically assigns a role → the role triggers a webhook or script → the player's username goes into whitelist.json through RCON. The whole process can run completely hands-free.

Whitelist vs. ban list

The whitelist and the ban list are two separate access control mechanisms that work independently and serve different purposes. New admins often mix them up.

Whitelist: the list of allowed players

The whitelist is a list of players who are allowed to join the server. The logic is exclusive: if you're on the list, you get in; if you're not on the list, you don't. The whitelist is off by default, and a whitelist that's on with an empty list blocks everyone.

Ban list: the list of blocked players

The ban list is a list of players who aren't allowed to join the server. The logic is the reverse: the server is open to everyone, and a ban blocks specific people. The files are banned-players.json (bans by username/UUID) and banned-ips.json (IP bans). Commands: /ban PlayerName, /ban-ip IPAddress, /pardon PlayerName.

When to use which

  • Whitelist: a private server, a closed group of friends, an SMP for a specific community, a server that's still being built or tested
  • Ban: a public server, blocking specific toxic players, protecting the server from a player after an incident
  • Both at once: possible, but rarely needed. The ban takes priority: a banned player who is also on the whitelist can't join.

If you run a public server and want to block a few players, use bans. If the server should only be open to selected players, the whitelist is the right tool. Don't use the whitelist instead of bans to punish players: there's a separate system for that.

Practical tips

Back up whitelist.json before big changes

Before editing the file by hand or doing a mass cleanup of the list, copy whitelist.json somewhere safe. A JSON syntax error or an accidental deletion can wipe the whole list, and a backup lets you restore it without contacting every player individually.

Keep usernames and UUIDs consistent

On a premium server, players can change their usernames through their Mojang account. A Vanilla server identifies them by UUID, so a username change doesn't block access: whitelist.json automatically updates the username the next time they connect. However, on older versions of Spigot or when you edit the file by hand, make sure the UUID is always correct.

A whitelist doesn't replace an RCON password

If you've turned on RCON for automation, set a strong password and block the RCON port (25575 by default) in your firewall for outside connections. RCON access = full control of the server, including the ability to change the whitelist without authentication.

Tell players how to apply

If you run a whitelisted server, put clear information on your website or Discord: how to apply for access, how long a review takes and what requirements players have to meet. Without that information you get frustration and lots of identical private messages to the admins.

Review the list regularly

Every few months, go through the whitelist and remove inactive players who haven't logged in for a long time. A shorter list is easier to keep track of and lowers the risk that someone with access "inherits" an account from a player who quit long ago. You can check player activity in the server logs or with a statistics plugin.

Handling emergencies

If you need to close the server to all new players quickly (an attack, someone exploiting a bug), running /whitelist on is faster than configuring a firewall. Players who are already online stay connected: only new connections are refused.