Guide · Configuration

How to whitelist a Minecraft server

A whitelist turns your server into an invite-only world: only players on the list can join. It is the single most effective protection for a private SMP, and it takes two commands to set up.

Turn it on

Run whitelist on in the server console, or /whitelist on in game as an operator. This sets white-list=true in server.properties for you. Add yourself and your staff straight away. Operators can join even when they are not listed, but relying on that makes the list confusing to manage, so keep everyone who should have access on it.

The commands

Use these in the console without the slash, or in game with it:

  • whitelist add <name>: allow a player
  • whitelist remove <name>: remove a player
  • whitelist list: show everyone on the list
  • whitelist reload: re-read whitelist.json after editing it by hand
  • whitelist off: open the server to everyone again

enforce-whitelist

Removing someone from the whitelist does not kick them if they are already online. Set enforce-whitelist=true in server.properties and the server removes anyone who is no longer listed as soon as the whitelist is reloaded or changed.

Whitelisting from the panel

On StormNodes, the Players section has a Whitelist page where you can add and remove names without typing commands. It edits the same list the server uses.

Fixing "You are not white-listed on this server"

Check the spelling of the name; whitelist add looks the player up by their exact Minecraft username. If the player recently changed their name, add the new one. Bedrock players joining through Geyser and Floodgate have a prefix in front of their name, usually a dot, and Floodgate has its own whitelist command for them: fwhitelist add <name>.

On an offline-mode server, the whitelist matches a different UUID from the online one, so names added while online-mode was true may not match. This is one more reason to keep online-mode on.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Do I need to restart after adding someone to the whitelist?
No. Whitelist commands apply immediately. Only if you edit whitelist.json by hand do you need to run whitelist reload.
How do I whitelist a Bedrock player on a Geyser server?
Use Floodgate's command, fwhitelist add <gamertag>, because Bedrock players are given a separate UUID and a name prefix that the vanilla whitelist cannot look up.
Is a whitelist better than a password plugin?
Yes, for a private server. A whitelist checks verified Mojang accounts and cannot be guessed. Password plugins exist mainly for offline-mode servers, which should be avoided.