How to turn on the whitelist on a Minecraft server
To turn on the whitelist on a Minecraft Java server, open the console in your host's panel and follow 4 steps:
- Switch it on with
whitelist on, or setwhite-list=truein server.properties and restart. - Add every player with
whitelist add <name>. They do not need to be online. - Check the list with
whitelist list. - Set enforce-whitelist=true in server.properties, so a player you take off the list is kicked right away.
In game the commands start with a slash, and only an operator with permission level 3 or higher can use them. The default operator level is 4, so a normal operator can.
Minecraft whitelist commands
Minecraft has 6 whitelist commands on Java, and Bedrock and Floodgate each add their own:
| Command | What it does | Where |
|---|---|---|
whitelist on | Turns the whitelist on | Java |
whitelist off | Turns it off, so anyone can join again | Java |
whitelist add <name> | Adds a player, online or not | Java |
whitelist remove <name> | Takes a player off the list | Java |
whitelist list | Shows everyone on the list | Java |
whitelist reload | Reads whitelist.json again after you edited the file | Java |
allowlist add <name>, remove, list, reload | The same jobs on a Bedrock server | Bedrock |
fwhitelist add <name>, remove | Adds or removes a Bedrock player on a Java server with Geyser | Floodgate |
Why can't I join my own Minecraft server?
If you can't join your own new Minecraft server on Java 26.3 or newer, the whitelist is the first thing to check: since 26.3 a new server.properties has white-list=true, so the server only lets in players on the list and operators. Fix it in the console with whitelist add <your name> or op <your name>, or set white-list=false if the server is meant to be open to everyone.
An older server that you update keeps the value already in its server.properties, so this only catches servers created on 26.3 or later. If the whitelist is off and you still cannot connect, our guide to making a Minecraft server lists the other causes.
How to whitelist on a Bedrock server
To whitelist on a Bedrock server, set allow-list=true in server.properties and add players with allowlist add <name>. Bedrock calls it the allowlist and has no command to switch it on or off, and unlike Java it makes no exception for operators: they must be on the list too.
The names are kept in allowlist.json, where each entry has a name, an optional xuid for the Xbox account and ignoresPlayerLimit, which lets that player in even when the server is full.
How to whitelist Bedrock players on a crossplay server
To whitelist Bedrock players on a crossplay server, use Floodgate's fwhitelist add <name> instead of the normal command. Bedrock players join a Geyser server under a name with a prefix, and fwhitelist adds them without it, straight into the Java whitelist. Our page on Minecraft crossplay hosting explains how Geyser and Floodgate fit together.
How to edit whitelist.json
To edit whitelist.json by hand, keep 1 entry per player with their uuid and name, save the file, and run whitelist reload if the server is running, or it keeps using the old list. The UUID is what counts, so a player who changes their name stays on the list.
With online-mode=false, the server checks an offline UUID made from the username instead, so anyone who types a whitelisted name gets in. Keep online mode on for any whitelist you rely on.
Best hosting for a whitelisted Minecraft server
The best hosting for a whitelisted Minecraft server for ten friends is an 8 GB plan, and every host here supports the whitelist:
For 6 to 10 players with vanilla Minecraft on Java in Poland (Warsaw), the finder recommends Lodehost Starter: 8 GB, AMD Ryzen 9 7950X, DDR5, for €15.95 a month when you pay monthly. As a new customer you pay €6.38 a month for the first 3 months, 60% off. The best plans at the other two hosts are Astroworld Starter Performance at €15.95 and CheapestMinecraftHosting Plus at €6.40.

