Offer Why us? How it works?
Guide

Minecraft Server Whitelist: How to Turn It On and Add Players

A whitelist lets only the people you choose onto your server – friends, family or players you've accepted on Discord. This guide shows how to turn it on, add and remove players with commands and in the panel, what white-list and enforce-whitelist do, and when a whitelist doesn't actually protect your server.

Updated: 8 min read
Table of contents
  1. What is a Minecraft whitelist?
  2. How to turn on the whitelist on a Minecraft server
  3. Whitelist commands – full list
  4. How to whitelist a player in the Spot.gg panel
  5. white-list and enforce-whitelist in server.properties
  6. The whitelist.json file – what it looks like and how to edit it
  7. Does a whitelist protect a cracked (offline-mode) server?
  8. Whitelist on Paper, Spigot and modded servers
  9. FAQ
  10. Why can't I join my own server – "You are not whitelisted on this server"?
  11. Do I need to restart the server after whitelisting someone?
  12. How do I whitelist a player who is offline?
  13. Do operators need to be on the whitelist?
  14. How do I turn off the whitelist in Minecraft?

What is a Minecraft whitelist?

A whitelist is the list of players allowed to join a Minecraft server – while it's on, anyone not on it sees "You are not whitelisted on this server!" and gets disconnected. It's the simplest way to run a friends-only server.

The key rules:

  • Operators (OPs) can always join, even if they aren't on the list.
  • The list only matters while it's turned on. With the whitelist off, everyone can join, listed or not.
  • Each entry is a player's name and UUID, stored in whitelist.json in the server's main folder.
  • Since Minecraft 26.3 the whitelist is on by default for new servers (white-list=true). If friends can't join a fresh server, this is usually why – they need to be added first.

This guide is about Java Edition. Bedrock has the same feature under the name allowlist (allowlist add name, the allow-list property and allowlist.json), and there operators must be on the list too.

How to turn on the whitelist on a Minecraft server

Type whitelist on in the server console (or /whitelist on in game as an operator). It takes effect immediately, without a restart, and the server writes white-list=true to server.properties itself.

Add yourself and your friends first, then turn the list on – otherwise only operators will be able to join.

On a Spot.gg Minecraft server you can do it without commands:

  1. Open the "Console" tab and scroll down to the "Whitelist" card below the console.
  2. Type a name into the "Player nickname" field and click "Add". Repeat for each player.
  3. Click the switch in the card header ("Enable the whitelist"). The card's subtitle changes to "Enabled — only listed players can join".

If people who aren't on the list are playing when you turn it on, the panel lists them in an "Enable the whitelist?" window and asks you to confirm with "Enable and kick". The switch also works while the server is stopped – the panel saves the setting to server.properties and the list applies on the next start.

Whitelist commands – full list

Every command starts with whitelist; type it without a slash in the server console and with / in game. In chat, only operators (permission level 3 or higher) can use them.

Command What it does
whitelist on Turns the whitelist on
whitelist off Turns the whitelist off – anyone can join
whitelist add Steve Adds a player to the list (they don't need to be online)
whitelist remove Steve Removes a player from the list
whitelist list Shows everyone on the list
whitelist reload Reloads the list from whitelist.json

With online-mode=true, whitelist add only accepts the name of an existing Minecraft account – a typo returns an error saying the player doesn't exist. Other player management commands are in our guide to Minecraft server commands.

How to whitelist a player in the Spot.gg panel

The quickest way: in "Console" → "Whitelist", type the name into "Player nickname" and click "Add". The panel looks up the player's UUID itself (from their Microsoft account, or the offline-mode UUID on a cracked server) and saves it to the list. It works for players who have never joined, and even while the server is stopped ("The server will load the list when it starts").

There are two other handy ways:

  • From a console line. When someone who isn't listed tries to join, the log shows a "You are not whitelisted on this server!" line with an "Add to the whitelist" button next to it. One click and the player can try again.
  • From the "Players" tab. Open the menu next to a player's name and choose "Add to the whitelist" or "Remove from the whitelist". Listed players have a "Whitelisted" badge. This works while the server is running.

To remove someone, click "Remove from the list" next to their name in the "Whitelist" card, or type whitelist remove name. If a helper should manage the list without full access to the server, add them under "Subaccounts" and tick the "Whitelist management" permission.

white-list and enforce-whitelist in server.properties

white-list turns the whitelist on and off, and enforce-whitelist decides whether unlisted players who are already online get kicked straight away. Both live in server.properties.

Property Default What it does
white-list true since 26.3, false before true – only listed players and operators can join
enforce-whitelist false true – when the list is turned on or reloaded, the server kicks online players who aren't on it

With enforce-whitelist=false, an unlisted player who is already playing can stay until they leave – they just can't connect again. If you want removing someone from the list to take effect immediately (say, after a falling-out on the server), set enforce-whitelist=true or simply kick them with kick name.

On Spot.gg you can change both in "Configuration" → "server.properties": type whitelist into the options search, pick a value and click "Save changes". File changes need a restart (a "Restart now" button appears), so for the list itself the switch in "Console" is handier because it applies instantly. More about the file in our server.properties guide.

The whitelist.json file – what it looks like and how to edit it

whitelist.json holds one entry per player with their UUID and name; the server reads it at startup and after whitelist reload. Example:

[
  {
    "uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
    "name": "Notch"
  }
]

The UUID, not the name, decides who gets in, so each entry needs the right ID. A premium player has a fixed account UUID, while on a cracked server the UUID is calculated from the name – the same player has a different UUID in each mode.

You can edit the file in the built-in editor in the "Files" tab. Editing by hand mostly makes sense when moving a list over from another server. After saving, run whitelist reload in the console – otherwise the running server won't see the changes and will overwrite the file with its own copy the next time someone runs whitelist add or remove. A single missing comma breaks the whole file; the panel then shows "The whitelist.json file is damaged - fix or delete it in Files and try again."

Does a whitelist protect a cracked (offline-mode) server?

No – with online-mode=false the whitelist only checks the name, so anyone who knows a listed player's name can join as them. Without the Microsoft account check, nothing proves it's the same person.

What to do instead:

  • If everyone owns the game, go to "Configuration" → "Most popular" → "Who can join" and pick "Original accounts only". Then the whitelist really protects the server. When you switch, the panel offers an account conversion that also carries over whitelist entries.
  • If some players don't own the game, install a login plugin or mod (such as AuthMe Reloaded) so every name has a password. The whitelist can run alongside it.
  • Be careful who you OP. Operators can always join, so on a cracked server without a login plugin, anyone using an operator's name gets full permissions.

On a cracked server, a player should either join once first or be added through the panel, which calculates the offline-mode UUID. More in our guide to non-premium Minecraft servers.

Whitelist on Paper, Spigot and modded servers

On Paper, Spigot, Purpur, Fabric, Forge and NeoForge the whitelist works exactly like vanilla: same commands, same properties, same whitelist.json. The Spot.gg panel handles it the same way on all of them.

A few differences worth knowing:

  • A custom message for unlisted players can be set on Paper and Spigot in spigot.yml, under messages.whitelist (default "You are not whitelisted on this server!"). It needs a restart.
  • On a Velocity proxy network you set the whitelist on the servers behind the proxy – the proxy itself has no server.properties.
  • Permission plugins like LuckPerms don't replace the whitelist – they control what a player can do, not whether they can join.

FAQ

Why can't I join my own server – "You are not whitelisted on this server"?

The whitelist is on and your name isn't on it, and you're not an operator. Since Minecraft 26.3 the whitelist is on by default for new servers. Add yourself in "Console" → "Whitelist", or click "Add to the whitelist" next to the rejected join line in the console.

Do I need to restart the server after whitelisting someone?

No. whitelist add, whitelist remove, whitelist on and whitelist off apply immediately. A restart is only needed after changing white-list or enforce-whitelist in server.properties.

How do I whitelist a player who is offline?

Run whitelist add name – the player doesn't need to be online. In the Spot.gg panel, type the name into the "Whitelist" card; it works even for someone who has never joined.

Do operators need to be on the whitelist?

Not in Java Edition – operators can always join. If the list is on and empty, only operators can join. How to give OP is covered in how to OP someone in Minecraft.

How do I turn off the whitelist in Minecraft?

Type whitelist off in the console, or click the switch in the "Whitelist" card on the "Console" tab. The list of players is kept, so you don't have to add everyone again when you turn it back on.

Other guides

How to Kick or Ban Players on a Minecraft Server Kick, ban, IP ban and unban players on a Minecraft Java server: /kick, /ban, /ban-ip, /pardon, banned-players.json and temporary bans with a plugin. 10 min read How to OP Someone in Minecraft: /op, ops.json and Permission Levels How to op someone on a Minecraft Java server: the op and deop commands, granting OP in the panel, the ops.json file, op-permission-level 1–4 and why OP disappears on offline-mode servers. 9 min read Minecraft Server Commands: OP, Whitelist, Bans & More Minecraft Java server admin commands: how to OP someone, turn on the whitelist and add players, ban and kick, game mode, time, weather and permissions without OP. 9 min read Minecraft Invalid Session: How to Fix the Failed to Login Error Why Minecraft says Failed to login: Invalid session (Try restarting your game and the launcher), and how to fix it in the official and third-party launchers. 7 min read An Existing Connection Was Forcibly Closed by the Remote Host: Minecraft Fix What the Minecraft errors An existing connection was forcibly closed by the remote host and Connection reset mean, and how players and server owners fix them. 8 min read Minecraft Hardcore Server: How to Set It Up and What Happens After Death Minecraft hardcore on a server: what hardcore mode is, how to turn it on in server.properties, why difficulty is always hard and what happens when you die. 9 min read