Minecraft server: setting up a whitelist
Updated: 18 November 2026 · Guide · Minecraft · Game server
A whitelist only lets players onto your Java server who are on a list. You switch it on with white-list=true in server.properties or with the command whitelist on, and players are added with whitelist add <name>. The server doesn't check the name but the account's UUID, and that is exactly where most whitelists that supposedly don't work fall down.
The two settings in server.properties
white-list=true enforce-whitelist=true
white-list turns the list on or off. Since Minecraft 26.3 the default is true, before that it was false. So a freshly generated server from 26.3 onwards lets nobody in until you add players or turn the whitelist off. If you set up a new server and wonder why nobody can join, this is often the cause.
enforce-whitelist defaults to false. In that case a change to the list only affects new connections: anyone already online stays in, even if you have just removed them. With true the server kicks players who aren't on the list as soon as it reloads the whitelist file.
The commands
In the server console without a slash, in game with /. In game you need permission level 3, i.e. OP rights (see the article on OP rights below). The commands only exist on a dedicated server, not in a singleplayer world.
whitelist on turn the whitelist on whitelist off turn the whitelist off whitelist add Steve add a player (doesn't need to be online) whitelist remove Steve remove a player whitelist list show all entries whitelist reload re-read whitelist.json from disk
If a command fails, there is usually a simple reason: on when the whitelist is already on, add when the player is already listed, remove when they aren't.
How whitelist.json is structured
The list lives as whitelist.json in the server folder. Each entry has two fields: uuid (the account's UUID with hyphens) and name. The UUID is what counts; the name is only there for readability.
[
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "Steve"
}
]There's a reason to prefer the whitelist add command: it looks up the matching UUID itself. If you write the file by hand, you have to know the UUID and run whitelist reload afterwards, otherwise the running server carries on with the old list it holds in memory. Ideally edit the file while the server is stopped, or send a reload straight after.
The offline-mode trap
With online-mode=true the server checks every account with Mojang, and the whitelist compares the real account UUID. If online-mode is false, that check doesn't happen. The whitelist then compares an offline UUID that Minecraft calculates from the player name. A list created with online-mode=true no longer matches anyone afterwards, and vice versa.
Then comes the real catch: without the account check anyone can connect under any name. The offline UUID is derived from the name alone, so anyone who knows the name of a listed player gets past the whitelist. minecraft.wiki advises setting online-mode to false only if the server isn't connected to the internet. One exception is a server behind a proxy such as Velocity or BungeeCord that handles login itself; there online-mode is deliberately false on the game server.
Whitelist not working: the most common causes
| What you see | Cause | Fix |
|---|---|---|
| You get in despite the whitelist, your friends don't | On Java, OPs can always connect, even without an entry | Test with an account that isn't OP |
| A removed player stays online | enforce-whitelist=false | Set enforce-whitelist=true or kick the player |
| Entry in whitelist.json has no effect | File changed, server didn't reload it | whitelist reload |
| Listed players are rejected | online-mode changed, UUIDs no longer match | Recreate the entries with whitelist remove and add |
| New server from 26.3 lets nobody in | white-list defaults to true there | Add players or whitelist off |
The first point is the most common false alarm: if you test as admin whether the whitelist works, you always get through, because operators bypass the whitelist on Java servers. Bedrock is different: there the list is called allowlist.json, the command is allowlist, and operators must be listed too.
In our control panel
For Minecraft the control panel has its own “Whitelist” tab: a button to switch it on and off, a field for the player name, and the list with names and UUIDs. If the server is running, the panel sends the commands whitelist on, off, add and remove to the console and the change takes effect immediately. If it's stopped, the panel writes server.properties and whitelist.json directly, and the change applies from the next start.
When you add a player while the server is stopped, the panel fetches the UUID from Mojang; with online-mode=false and no proxy it calculates the offline UUID. The switch “Enforce whitelist immediately” in the “Game rules” tab is enforce-whitelist. OP rights and bans are deliberately not in the tab; you grant those via the console.
- Granting OP rightsLevels 1 to 4, ops.json and why OPs bypass the whitelist
- server.properties fully explainedEvery setting, including white-list and online-mode
- Crossplay with BedrockWhen phone and console players join in
- Nobody gets in, even without a whitelist?Five checks and all default ports
- Rent a Minecraft serverWhitelist as its own tab in the control panel