How to Whitelist Someone on a Minecraft Server (26.3)
Published
To whitelist someone on a Minecraft Java server, run whitelist add TheirName in the server console (or /whitelist add TheirName in game as an op), and make sure the whitelist is on with whitelist on. They can join right away; they don't need to be online when you add them. To make someone an operator, run op TheirName. The rest of this guide covers why a fresh 26.3 server suddenly rejects everyone, how to edit the files by hand, and how much power to give a friend.
Why your friends see "You are not white-listed on this server!"
That is the exact message a player gets when the whitelist is on and their name isn't on it. Since Java Edition 26.3, a newly generated server.properties has white-list=true by default (the Minecraft Wiki lists the change in 26.3 snapshot 2). Before 26.3 the default was false, so a lot of guides still tell you the whitelist is off until you turn it on.
What that means in practice:
- A brand-new 26.3 server lets in nobody but ops until you add players or turn the whitelist off.
- An older server that you updated to 26.3 keeps its old setting. The server doesn't rewrite a
white-list=falseline that's already in the file. - Ops always get in. On Java, operators skip the whitelist, so the owner can join while everyone else is refused. That is the usual sign that this is your problem.
If friends get a different error, such as a timeout or "Connection refused", it isn't the whitelist. See can't connect to a Minecraft server for those.
The whitelist commands
Type these in the server console without the slash, or in game with a slash if you are an op. On Java, /whitelist needs permission level 3.
| Command | What it does | Message you should see |
|---|---|---|
whitelist add Steve | Adds a player. They don't need to be online. | Added Steve to the whitelist |
whitelist remove Steve | Removes a player. | Removed Steve from the whitelist |
whitelist list | Shows everyone on it. | There are 3 whitelisted player(s): … |
whitelist on | Turns the whitelist on. | Whitelist is now turned on |
whitelist off | Turns it off, so anyone with the address can join. | Whitelist is now turned off |
whitelist reload | Re-reads whitelist.json after you edit it by hand. | Reloaded the whitelist |
Two errors you might hit:
- "That player does not exist": the name is misspelled, or it isn't a Java Edition account. The server looks the name up with Mojang to get the player's UUID, so use their exact Java username, not their Xbox gamertag or a nickname.
- "Player is already whitelisted": nothing to fix, they're already on it. If they still can't join, check that they're connecting with that same account.
Removing someone doesn't kick them if they're online right now. To kick people as soon as they're removed, set enforce-whitelist=true in server.properties, and kick them once with kick Steve.
Edit whitelist.json by hand
The whitelist lives in whitelist.json in the server's main folder, next to server.properties. Each entry is a UUID and a name:
[
{
"uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
"name": "Notch"
}
]
The UUID is what counts; the name is only a label. That's why the command is easier: it fetches the right UUID for you. If you do edit the file, keep the commas and brackets exact (one stray comma and the server can't read the file), save it, then run whitelist reload so you don't need a restart.
The server.properties settings
| Key | Default | What it does |
|---|---|---|
white-list | true on files made by 26.3+, false before | Turns the whitelist on or off. Same as whitelist on / off. |
enforce-whitelist | false | When true, online players who aren't on the whitelist get kicked when it's reloaded. |
op-permission-level | 4 | The level new ops get when you run op. |
Change these with the server stopped, then start it again. On a hosted server you'll usually find server.properties in the panel's file manager.
How to op someone, and which level to give
op Steve makes Steve an operator and writes him into ops.json at the level set by op-permission-level, which is 4 (everything) unless you changed it. deop Steve takes it away. Both need level 3 when used in game.
The four levels on Java, from the Minecraft Wiki:
| Level | Name | What it adds |
|---|---|---|
| 1 | Moderator | Can build inside spawn protection. |
| 2 | Gamemaster | Most cheat commands: gamemode, tp, give, command blocks. |
| 3 | Admin | Player management: kick, ban, whitelist, op. |
| 4 | Owner | Everything, including stop and save-off. |
Level 4 is a lot to hand a friend: they can stop the server, op other people or deop you. For a friend who only needs creative mode and teleports, level 2 is enough. For someone helping you moderate, level 3.
To give one player a lower level, stop the server and edit their entry in ops.json:
[
{
"uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
"name": "Notch",
"level": 2,
"bypassesPlayerLimit": false
}
]
There's no reload command for ops, so start the server again after saving. bypassesPlayerLimit: true lets that op join even when the server is full.
If you run Paper and want finer control than four levels, a permissions plugin such as LuckPerms lets you grant single commands instead of a whole op level.
Ops vs panel access
Op is power inside the game. It doesn't let anyone restart the server, change files or fix a crash while you're away. For that, a host's panel usually has its own users. On Packyard, you invite a friend as a sub-user (your server → Users → New subuser), they get their own login for the console, files and SFTP, and you tick what they can do. They can't see your billing or delete the server.
A good setup for a group: the whitelist on, the owner at op level 4, one trusted friend as a sub-user so they can restart the server, and everyone else whitelisted with no op. If you're setting one up for a modpack, how to set up a Cobblemon server with friends walks through the rest.
Does Bedrock work the same way?
Not quite. Bedrock Dedicated Server renamed it the allowlist in 1.18.10: the command is allowlist add Name, the file is allowlist.json and the key in server.properties is allow-list. On Bedrock, ops are not let in automatically, so add yourself too.
A server only your friends can join
The whitelist is the main thing that keeps strangers out, and it works best on an address that doesn't keep changing. If you've been sharing a home IP or a tunnel, see ways to play with friends without port forwarding.
On Packyard (from our live pricing page): $1.50 per GB of RAM a month with a $5 minimum (3 GB), in USD plus applicable taxes, with a permanent address like yourserver.play.packyard.ca, a console and file manager in the panel, sub-users, and daily backups kept up to 7 days. Not sure what size to pick? The RAM calculator tells you.
Get a Minecraft server on Packyard, from $5 a month
Minecraft is a trademark of Mojang/Microsoft. Packyard is not affiliated with Mojang, Microsoft or LuckPerms.
FAQ
How do I whitelist someone on my Minecraft server?
Run whitelist add TheirName in the server console, or /whitelist add TheirName in game if you're an op. Use their exact Java username. They can join right away and don't need to be online when you add them.
Why does my new server say "You are not white-listed on this server"?
Since Java 26.3, a newly made server.properties has white-list=true by default, so only ops can join. Add your friends with whitelist add, or turn it off with whitelist off.
Do ops need to be on the whitelist?
Not on Java Edition: operators can always join when the whitelist is on. On Bedrock, everyone has to be on the allowlist, including ops.
Does removing someone from the whitelist kick them?
Not by default. They stay until they leave. Set enforce-whitelist=true in server.properties to kick players who aren't on the list when it's reloaded, or kick them with kick TheirName.
What op level should I give a friend?
Level 2 for creative mode, teleports and give; level 3 if they help moderate with kick, ban and whitelist. Keep level 4 for the owner, because it can stop the server and op or deop anyone.
How do I whitelist on Aternos or another host?
The commands are the same on any Java server. Type them in the host's console without the slash, or in game as an op. A players or whitelist page in a host's panel usually just edits the same whitelist.json file.
More guides and posts on the Packyard blog.