The short answer
A whitelist is the list of players allowed to join your server. When it is on, anyone who is not on the list is refused, even if they have the address. The one exception is a server operator (op). A friends-only server takes three steps: turn the whitelist on, add each friend by their Minecraft name, and give operator rights only to the people who need them.
This guide is for Minecraft: Java Edition servers running Vanilla, Paper or Fabric. The commands work the same wherever the server runs. The last section shows where each step is on PlayDubious.
Keep online mode on
A whitelist checks names. Online mode is what makes a name mean something: with the online-mode setting on, the server only lets in players whose account has been verified with Minecraft's account service. With online mode off, the server cannot check that a player owns the name they use, so a stranger can join under a friend's name and walk past the whitelist. Leave it on. Each friend then joins with their own Java Edition account.
Turn the whitelist on
From the server console, whitelist on turns the whitelist on and whitelist off turns it off. In server.properties the same setting is the white-list key. With it on, players who are not on the list cannot connect.
Have your friends' names ready before you switch it on. The moment it is on, anyone not on the list is turned away.
On PlayDubious, use the Whitelist Enabled switch on the Startup tab, then restart the server from the Console tab. The panel writes that switch into server.properties every time the server starts, so a whitelist on typed into the console lasts only until the next restart; the switch is the setting that stays. The switch only turns the whitelist on or off; the names go in with the commands below.
Add your friends
In the server console, type commands without the slash. In game, an operator types the same command with a slash in front, such as /whitelist add PlayerName (general guidance).
whitelist add PlayerNameadds a player. The player does not need to be online.whitelist listshows everyone on the list.whitelist remove PlayerNametakes a player off.
Use the exact name each friend plays under. With online mode on it has to be a real account name. A typo adds nobody useful, so ask each friend to send their name as their launcher shows it, and check it with whitelist list (general guidance).
The list lives in whitelist.json in the server folder. You can edit that file by hand, but then run whitelist reload so the server reads the file again. As general guidance, the commands are the safer route: one missing comma in a JSON file and the server cannot read it.
Remove someone who is online
Taking a name off the list does not throw that player out on its own. Kick them as well: kick PlayerName, with an optional reason after the name, such as kick PlayerName Off the list. Once they are off the list they cannot connect again.
On PlayDubious the Startup tab also has an Enforce Whitelist Live switch, which is off on a new server. It sets Minecraft's enforce-whitelist option, which removes players who are online and not on the list when the whitelist is reloaded. We have not tested it with a player online (general guidance), so kick is the sure way.
One exception: if the player is an operator, read the next section first.
Ops: who can run commands
An operator, or op, can run server commands in game. op PlayerName makes someone an op and deop PlayerName takes it away. The list is kept in ops.json. Two things to know before you hand it out.
- Ops get past the whitelist. On Java Edition an operator can always connect while the whitelist is on, even when their name is not on it. To lock out someone who is an op, run
deopfirst, thenwhitelist removeandkick. - Ops get a lot by default. The level a new op gets comes from
op-permission-levelinserver.properties, where Minecraft's default is 4, the level that allows every command including the ones that manage the server. The whitelist, op, deop and kick commands themselves need level 3.
General guidance: op yourself and perhaps one co-admin you rely on. Friends who only play need no op at all, and every op is one more person who can change the server.
The panel is a separate lock
The whitelist decides who plays. Who can manage the server is decided in the control panel, and that matters just as much: a panel login can stop the server, change files and undo everything above.
On PlayDubious, every panel account uses two-step verification with an authenticator app; it is required, not optional. Do not share your login with a co-admin. Invite them as a sub-user on the Users tab and choose their permissions, so a helper can have the console and the file manager without having everything else. The Activity tab is an audit log if something changes and you do not know why. SFTP uses your panel password, so do not hand those details out either. Security and two-step verification covers all of this.
Set it up on PlayDubious
The whole setup, in order:
- Open the Startup tab and turn Whitelist Enabled on. Online mode is shown there too; it is on and stays on.
- Restart the server from the Console tab and wait until the log says it has finished starting.
- In the console box, run
whitelist addwith your own name and each friend's name, thenwhitelist listto check. - Run
op YourNamefor yourself, and for a co-admin only if they need commands in game. - Invite that co-admin as a sub-user on the Users tab.
If a friend still cannot join, the Minecraft server guide has a checklist that covers the address, the version and the whitelist.
Plans are below, with the recommended players each one lists.
| Plan | Price | RAM | Recommended players | Storage | vCPU | Backup slots |
|---|---|---|---|---|---|---|
| Minecraft Starter | $12/mo | 4 GB | Up to 20 | 20 GB | 1.5 | 2 |
| Minecraft Standard | $18/mo | 6 GB | 20–35 | 30 GB | 2 | 3 |
| Minecraft Plus | $24/mo | 8 GB | 35–60 | 40 GB | 2.5 | 4 |
See the Minecraft plans and order
Minecraft servers hosted here are unofficial and not affiliated with or endorsed by the game's publisher.
Quick answers
Do ops have to be on the whitelist?
On Java Edition, no. An operator can always connect while the whitelist is on.
Does removing a name kick the player?
Not by itself. Run kick PlayerName as well.
Do I type the slash in the console?
No. In the console you type whitelist add PlayerName; in game an operator types /whitelist add PlayerName.
Can my co-admin use my panel login?
Please do not. Invite them as a sub-user on the Users tab, so they have their own login with two-step verification.