ServerBuddy
Server administration markerServer administration

How to whitelist a Minecraft server: commands and server.properties

8 min readServerBuddy

Use whitelist commands and server.properties settings to keep a Java server private while you add trusted players.

A whitelist limits who can join a Minecraft Java server. It is useful for private SMPs, family servers, staff testing worlds, creator events, and small community launches.

The short version is simple: turn the whitelist on, add player names, reload the whitelist, then confirm the matching server.properties lines. Do this from the server console or with an operator account in game.

Last reviewed: May 2026. Tested with Java server whitelist commands, server.properties whitelist settings, and ServerBuddy Access Control Builder output.

Quick answer: To whitelist a Java server, run whitelist on, add players with whitelist add PlayerName, run whitelist reload, then check server.properties for white-list=true and enforce-whitelist=true.

ServerBuddy Access Control Builder showing player names, whitelist console commands, and server.properties whitelist settings
Keep console commands, player lists, and server.properties settings in sync before you invite players to a private Java server.

Quick whitelist commands

These are the core whitelist commands. The syntax changes slightly depending on whether you run them from the server console or from chat as an operator.

Console vs in-game whitelist commands

Use console commands without a leading slash. Use slash commands only when you run them in game as an operator.

Server console
whitelist on
whitelist add PlayerName
whitelist reload
whitelist list
In game, as an operator
/whitelist on
/whitelist add PlayerName
/whitelist reload
/whitelist list

Replace PlayerName with the exact Minecraft username. Usernames are case-insensitive for most command use, but copying the visible account name reduces mistakes when you manage a longer player list.

Adding more than one player? Use the Minecraft whitelist command generator to paste a player list, deduplicate names, generate whitelist add and remove commands, and copy matching server.properties lines.

server.properties settings

Most Java servers also store whitelist behavior in server.properties. For a private server, these two lines are the main settings to check.

server.properties
white-list=true
enforce-whitelist=true
SettingUse
white-list=trueTurns the whitelist on for new join attempts.
enforce-whitelist=trueKeeps whitelist rules strict when players reconnect or when the list changes.
white-list=falseOpens the server to anyone who can reach the address.

Use the server.properties generator if you want to check these lines alongside online-mode, difficulty, PvP, spawn protection, and other launch settings.

Step-by-step setup

  1. Stop public sharing of the server address until the whitelist is ready.
  2. Run whitelist on from the console or /whitelist on as an operator.
  3. Add each player with whitelist add PlayerName or /whitelist add PlayerName.
  4. Run whitelist reload after batch edits or file changes.
  5. Run whitelist list to check who can join.
  6. Ask one allowed player and one unlisted test account to try joining if you can.

Do not edit whitelist.json by hand unless the server is stopped and you know the UUID format. For normal server management, console commands are safer.

How to add many players at once

For a small private SMP, manual commands are fine. For a larger launch, paste the player list into the Minecraft whitelist command generator, clean duplicates, then copy the console commands, rollback commands, whitelist.json, or ops.json output you need.

Common whitelist problems

ProblemLikely causeFix
Player still cannot joinUsername typo or whitelist not reloadedCopy the username, run whitelist add PlayerName, then run whitelist reload.
Everyone can joinwhite-list=falseSet white-list=true, restart or reload, then test with a non-whitelisted account.
Player can stay after removalenforce-whitelist=falseSet enforce-whitelist=true, reload the whitelist, and kick the removed player if needed.
Command fails in chatNo operator permissionRun the command from the server console or grant operator permission temporarily.
Bedrock setup differsDifferent access-control systemCheck your Bedrock host, proxy, or server software docs before using Java commands.

If the server shows offline while you test access, use the why your Minecraft server shows offline guide before inviting players.

Before you open the server

A whitelist is only one part of a clean launch. Check the access list, config, public status, MOTD, icon, and listing readiness before you share the address.

CheckGood stateTool
WhitelistOnly trusted players are listedAccess Control Builder
server.propertieswhite-list and enforce-whitelist are correctConfig Builder
Online statusServer responds publiclyMinecraft server status checker
MOTDShort and readableMOTD generator
Icon64x64 PNG is visibleMinecraft server icon guide
ListingServer is ready to submitAdd Server

When those checks pass, add your Minecraft server so ServerBuddy can create a public profile after a successful Server List Ping.

FAQ

How do I whitelist a Minecraft server?

Turn the whitelist on, add trusted player names, reload the whitelist, and confirm white-list=true in server.properties.

What is the command to add someone to a Minecraft whitelist?

From the server console, use whitelist add PlayerName. In game as an operator, use /whitelist add PlayerName.

What is the difference between white-list and enforce-whitelist?

white-list=true turns the whitelist on. enforce-whitelist=true makes the server strictly apply the list when players reconnect or when entries change.

Do I need to restart after changing whitelist settings?

Whitelist commands usually apply immediately after whitelist reload. If you change server.properties, restart the server so the config is loaded cleanly.

Why can a non-whitelisted player still join?

The whitelist may be off, enforce-whitelist may be false, the player may already be connected, or a proxy may be handling access separately.

Where is whitelist.json stored?

On Java servers, whitelist.json lives in the main server folder near server.properties and the server jar.

Does this work on Bedrock servers?

These commands target Java server console syntax. Bedrock servers and proxy networks can use different access-control commands.

How to Whitelist a Minecraft Server: Commands &... - ServerBuddy