MinecraftServers100

How to Set Up a Minecraft Server Whitelist

Updated 2026-11-27

A whitelist (called an allowlist on Bedrock) means only players you added can join. It's the simplest way to keep a private server private.

Java Edition

Run these in the server console (without the slash) or in game as an operator:

  • /whitelist on turns it on. It's the same as white-list=true in server.properties.
  • /whitelist add Name adds a player by their exact Minecraft name.
  • /whitelist remove Name removes them.
  • /whitelist list shows everyone on it.
  • /whitelist reload reads whitelist.json again after you edited the file by hand.

With the default enforce-whitelist=false, removing someone who is online doesn't disconnect them; they just can't join again. Set enforce-whitelist=true in server.properties to disconnect players as soon as they're no longer on the list. Operators in ops.json can always join.

Add players before you turn the whitelist on, or add yourself first, so you don't lock yourself out.

Bedrock Dedicated Server

Bedrock uses the name allowlist. Set allow-list=true in server.properties, then use allowlist add Name and allowlist remove Name in the server console. Names are Xbox gamertags; the list is stored in allowlist.json.

Bedrock players on a Java server

With Geyser and Floodgate, Bedrock players get a prefix in front of their name. Add them with Floodgate's command: /fwhitelist add GamerTag. See the crossplay guide for the setup.

"You are not white-listed on this server"

  • Typo or old name: the whitelist stores each player's account ID. Remove and re-add the player with the exact current name.
  • Offline mode: with online-mode=false, players get different IDs than their real accounts, so the whitelist doesn't match. Behind a proxy, whitelist on the proxy or turn on the proxy's forwarding correctly.
  • Edited the file but nothing changed: run /whitelist reload.

A public server with a whitelist won't get players from server lists, because nobody can join to try it. Use protection plugins instead if you want strangers to join.