EN · $ USD
Minecraft Server Guides

How to Enable the Minecraft Whitelist and Add Players

7 min read Updated: OyunBulut technical team

In short

To enable the Minecraft whitelist, type whitelist on in the server console, then add each player with whitelist add PlayerName. To make it stick, set white-list=true and enforce-whitelist=true in server.properties. The list is stored by UUID in whitelist.json; if you edit the file by hand, run whitelist reload. On offline-mode servers, the whitelist alone is not enough protection.

In this guide
  1. How does the whitelist work?
  2. When should you use a whitelist?
  3. How to enable the whitelist, step by step
  4. All whitelist commands
  5. Editing whitelist.json
  6. Whitelist on offline-mode servers
  7. Adding Bedrock players to the whitelist
  8. Private friends server setup
  9. Managing the whitelist in application-based communities
  10. Common whitelist problems
  11. Next step: Launch your private server

In Minecraft, the whitelist is an access list that only lets players you approve join your server. To turn it on, type whitelist on in the console; to add a player, type whitelist add OyuncuAdi (replace OyuncuAdi with the player's name). Anyone not on the list who tries to connect is rejected with the message “You are not whitelisted on this server!” Below we walk through the commands, the whitelist.json file, what to watch for on offline-mode servers, and a setup for a private server with friends.

How does the whitelist work?

When a player connects, the server first verifies their account (if online mode is on), then checks whether the player's UUID is in the whitelist.json file. If it isn't, the connection is dropped before the player ever loads into the world. That makes the whitelist a protection that needs no plugin and puts almost no load on the server. It works with the same commands on Vanilla, Paper, Spigot, Purpur, and Forge/Fabric servers, so it doesn't matter which server software you use.

The whitelist only controls who can join. It doesn't decide what a whitelisted player can do on the server; permissions like breaking blocks, using commands, or region protection need a separate permissions system.

When should you use a whitelist?

  • Friends or family server: Even if the server address gets out, strangers can't join.
  • Application-based communities: Players approved through Discord or a form get added to the list.
  • Maintenance and testing: Creates a closed environment where only your team can join before launch.
  • Against bots and griefing: Bots that scan public servers and griefers can't reach your world.

How to enable the whitelist, step by step

  1. Open your server's console. On a managed game panel, this is the console screen in the web panel.
  2. Enable the whitelist:
    whitelist on
  3. Add yourself and your players:
    whitelist add Steve
    whitelist add Alex
  4. Check the list:
    whitelist list
  5. To make sure the setting survives restarts, check these lines in server.properties:
    white-list=true
    enforce-whitelist=true

In the console, commands are typed without a slash (/). In-game, with an op account, you can use the same commands in the form /whitelist add Steve. The whitelist on command also updates the white-list value in server.properties.

All whitelist commands

CommandWhat it does
whitelist onEnables the whitelist.
whitelist offDisables the whitelist; the list isn't deleted, just not enforced.
whitelist add <isim>Adds a player to the list.
whitelist remove <isim>Removes a player from the list.
whitelist listShows the players on the list.
whitelist reloadRe-reads the whitelist.json file.

Why does enforce-whitelist matter?

The enforce-whitelist=true setting kicks online players who aren't on the list when the list is reloaded or the whitelist is turned on. If this setting is off, a player you remove from the list can't rejoin only after they log out. If you want to remove a player right away, also use kick <isim>.

Ops bypass the whitelist

In Vanilla Minecraft, players with op permissions can join the server even if they aren't on the whitelist. So manage the op list (ops.json) as carefully as the whitelist, and don't give op to anyone who doesn't need it.

Editing whitelist.json

The list is stored in the whitelist.json file in the server folder. Each player is saved with a UUID and a name:

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

Minecraft identifies players by UUID, not by name. That means a player stays on the whitelist even if they change their Minecraft username. Editing the file by hand is handy for adding lots of players at once or moving the list to another server. Things to watch for:

  • Don't break the JSON syntax: a comma after each entry, no comma after the last one.
  • Run whitelist reload in the console after editing, or the change won't show up.
  • If you don't know a player's UUID, use the whitelist add command instead of filling in the file by hand; the server looks up the UUID itself.

Whitelist on offline-mode servers

Things change on servers with online-mode=false (open to unlicensed, “cracked” players). Since there's no account verification, the server derives the UUID from the player's name. In practice, the whitelist then does only a name check: anyone who knows that “Alex” is on the list can type the same name in their client and join.

If you're going to use a whitelist on an offline-mode server, apply these measures together:

  1. Before adding players to the whitelist, decide that the online-mode value won't change for the life of the server. When online-mode changes, UUIDs change too, and the list and player data no longer match.
  2. Install a password login plugin like AuthMe. That way, even if someone knows a name, they can't get into the account without the password. We cover setup in our AuthMe setup: account security on offline-mode servers guide.
  3. Don't share the names of op accounts in public places.

If you can, run your friends server with online-mode=true; the whitelist is at its most secure with licensed accounts. For the other effects of this setting, see our server.properties settings guide.

Adding Bedrock players to the whitelist

If you let Bedrock players onto a Java server with Geyser and Floodgate, their names usually come with a prefix (a dot by default, for example .OyuncuAdi), and since they don't have a Java account, the standard command may not find them. Floodgate provides the fwhitelist add <isim> command for this. For Geyser setup, see our connecting Bedrock players with Geyser guide.

Private friends server setup

Here's the setup we recommend for a secure, low-maintenance server that only people you know can join:

  1. Pick the right plan: For a 2-5 player vanilla or Paper server, the OB-MC-1 friends server plan with 2 GB of RAM is enough. If you're planning a group of 6-10, a few plugins, or a bigger map, the OB-MC-2 Minecraft server with 6 GB of RAM leaves more headroom.
  2. Turn on the whitelist at first launch: Run whitelist on and set enforce-whitelist=true before you share the server address with anyone.
  3. Use online-mode=true: If all your friends have licensed accounts, this is the strongest protection.
  4. Give op only to yourself: If other players need it, grant limited permissions with a permissions plugin.
  5. Plan backups: Back up the world folder regularly; the whitelist prevents griefing but not accidents.
  6. Add an address: If you want a memorable address instead of an IP, you can set up an SRV record on your domain.

Managing the whitelist in application-based communities

If you run a community with dozens of players that admits members by application, keeping the list by hand one entry at a time gets hard over time. A few methods keep things organized:

  • One person in charge: Limit the ability to add to the whitelist to one or two admins. When everyone can add people, you can't track who was added and why.
  • Keep a log: Open an approvals channel on Discord and note each addition as “player name, admin who added them, date.” When problems come up, you know who approved them.
  • Discord integration: Plugins like DiscordSRV offer settings that support linking a Minecraft account to a Discord account and blocking players who don't have a specific role. That way, a player whose role is removed on Discord can't join the server either.
  • Periodic cleanup: Remove accounts that haven't logged in for months. A short, up-to-date list reduces the risk from old members whose accounts have been compromised.

Whitelist vs ban

The whitelist answers “who can join,” while the ban list (banned-players.json) answers “who can't join.” With the whitelist on, removing a problem player from the list is usually enough; but if you might turn off the whitelist later, also ban the player with ban <isim>. That way they can't come back even when the server opens to everyone.

Common whitelist problems

  • “You are not whitelisted” error for a player who is on the list: The name may be misspelled, or the server's online-mode value changed after they were added. Remove the player with whitelist remove and add them again.
  • “That player does not exist” message: On an online-mode server, the username wasn't found in Mojang's records. Make sure you typed the name correctly, including upper and lower case.
  • A player added by hand can't join: whitelist reload wasn't run after editing the file, or the JSON syntax is broken.
  • The whitelist turns off after a restart: white-list=false is still set in server.properties; fix the file while the server is stopped.

Next step: Launch your private server

The whitelist is the simplest yet most effective protection for a small, trusted community. OyunBulut Minecraft plans run in our Istanbul data center and come with NVMe SSD storage, DDoS protection, automatic setup, and a web panel with console access. If you're starting with a few friends, launch your server with OB-MC-1, or with OB-MC-2 for a larger or plugin-heavy group, and make whitelist on the first thing you type. To see other RAM options, check out the Minecraft server plans page.

Frequently asked questions

What is the Minecraft whitelist command?

In the console, turn it on with whitelist on and add a player with whitelist add PlayerName. When using it in-game, put a slash in front of the commands and make sure you have op permissions.

Can ops join while the whitelist is on?

Yes. In Vanilla Minecraft, players with op permissions can join even if they aren't on the whitelist, so keep the op list tight.

Does a player drop off the whitelist if they change their username?

Not on online-mode servers, because the whitelist works by UUID and the UUID isn't affected by a name change. On offline-mode servers, the UUID is derived from the name, so the new name has to be added again.

Is a whitelist safe on a cracked (offline-mode) server?

Not on its own, because anyone who knows a name on the list can join with it. On offline-mode servers, use a password login plugin like AuthMe together with the whitelist.

I edited whitelist.json but it didn't work. Why?

The server only reads the file at startup or when you run whitelist reload. Also check the JSON syntax for a missing comma or quote.

For this guide

Recommended plans

OB-MC-1 is enough for a small, whitelist-protected server with friends; when your group grows or you add plugins, OB-MC-2 with 6 GB of RAM leaves comfortable headroom.

OB-MC-1

Recommended

2 GB RAM

$3.54/mo

+VAT

  • Processor2 CPU
  • Disk20 GB NVMe
  • LocationIstanbul
  • DDoS Protection
  • Automatic Setup
  • Web Panel
  • 7/24 Support

6 GB RAM

$5.31/mo

+VAT

  • Processor4 CPU
  • Disk45 GB NVMe
  • LocationIstanbul
  • DDoS Protection
  • Automatic Setup
  • Web Panel
  • 7/24 Support

Minecraft — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.