DocsHow to whitelist your server
Ask on Discord
how-to-whitelist-your-server illustrated for the CraftLands Minecraft docs
MINECRAFT · SETTING
lborg
Docs Writer
Published August 8, 2026
UPDATED TODAY

How to whitelist your server

Turn the whitelist on, add and remove players by name or UUID, and fix the offline-mode problems that break whitelist entries

Fact
Whitelisting only blocks players from joining. It doesn't kick players who are already online, and it never blocks server operators, who can always connect regardless of whitelist status.
Fact
Editing whitelist.json directly doesn't take effect until you run whitelist reload in Console. Restarting the server does not force a reload.

Before you start

  • You will need to open and login to the panel of your Minecraft server.
  • Whitelisting only blocks the player who tries, It does not remove players who are already online, and it does not affect server operators, who can always join.
  • If your server is in offline mode (online-mode=false in server.properties), read the UUID section below before you add anyone. This is the most common reason whitelist entries fails without letting the user know.
  • No restart is needed to toggle the whitelist from Console. A restart is only needed if you set white-list=true directly in server.properties instead.

Steps

Turn the whitelist on (Console)

  1. 1Open Console in the panel.
  2. 2Run:
    whitelist on
  3. 3Check if the server replies Whitelist is now turned on.
whitelist-on.webp

Add and remove players (Console)

  • Add a player:

whitelist add PlayerName

  • Remove a player:

whitelist remove PlayerName

  • List everyone currently whitelisted:

whitelist list

  • Turn the whitelist back off:

whitelist off

whitelist-list.webp

Alternative way: edit whitelist.json directly

  1. 1Open Files and locate whitelist.json in your server's root directory.
  2. 2Each entry needs both a uuid and a name field:
    [ { "uuid": "069a79f4-44e9-4726-a5be-fca90e38aec5", "name": "PlayerName" }]
  3. 3Save the file.
  4. 4Run whitelist reload in Console. Edits made directly to the file are not picked up until you reload, and a restart alone does not force a reload either.
whitelist-file.webp

Turn the whitelist on at boot (server.properties)

  1. 1Open Files → server.properties.
  2. 2Set:
    white-list=true
  3. 3Save and restart the server from Startup.

This is the setting to use if you want the whitelist enforced every time the server boots, without having to run whitelist on manually after a crash or reboot.

Bedrock servers

Bedrock does not use whitelist.json. It uses allowlist.json, and the toggle in server.properties is allow-list=true rather than white-list=true. Player entries in allowlist.json use name and ignoresPlayerLimit, not UUID.

Verify

  • Run whitelist list in Console and confirm the player's name appears.
  • Have the player join. If they are not on the list, they should see "You are not white-listed on this server!"
  • Have an operator or already-online player confirm they can still join normally. Whitelisting does not remove existing sessions or block ops.

If it doesn't work

  • Edited whitelist.json but the player still can't join, or still gets in after removal. You edited the file but never ran whitelist reload, or you restarted instead. Run whitelist reload in Console after any direct file edit.
  • Added a player by name, but they still can't connect, on an offline-mode server. Offline-mode servers generate UUIDs from the username locally rather than pulling the real Mojang UUID. If the server later switches to online mode, or the player's client resolves a different UUID, the whitelist entry no longer matches. Remove the stale entry and re-add the player while the server is in the mode it will actually run in.
  • whitelist.json has a name but a blank or malformed uuid field. Delete the broken entry and re-add the player with whitelist add PlayerName from Console rather than typing the UUID by hand.
  • Whitelist is on, but random players are still getting in. Check for a stray whitelist off in a startup script or Schedule, and confirm you did not add the account as an operator in ops.json, since ops bypass the whitelist entirely.

I added a player on my offline-mode server, but they still can't join. Why?

Offline mode servers (online-mode=false) generate UUIDs from the username locally instead of using the real Mojang UUID. If the server later switches modes, or the player's client resolves a different UUID, the entry stops matching. Remove the stale entry and re-add the player while the server is running in the mode it will actually use.

Do I need to restart the server to turn the whitelist on?

Not if you use the Console command whitelist on, which takes effect immediately. A restart is only required if you instead set white-list=true directly in server.properties.

Start Your Minecraft Server Today

Pick a plan and your Minecraft server is online in about 30 seconds, with Paper plugins and Forge modpacks one click away in the panel. Full file access and SFTP are there when you go deeper, and automatic backups turn a broken config into a restore, not a rebuild.
VIEW MINECRAFT PLANS
Logo
Game server hosting made simple for everyone.
CraftLands Hosting S.R.L.Calea Moșilor 88, Sc. F, Ap. F1, Sector 3, 030152, București, RomaniaCUI 50929471 · VAT RO51171749Reg. Com. J2024043623000+40 755 361 220business@craftlands.host
© 2024 - 2026 CraftLands Host. All rights reserved.
Soluționarea Alternativă a Litigiilor (ANPC SAL): Romanian alternative consumer dispute resolution, opens in a new tab, page in Romanian