All commands
๐Ÿ“‹
AdminJava โœ“Bedrock โœ“

/whitelist

Manage the list of players allowed onto the server.

๐ŸชจBedrock note: On Bedrock this is the allowlist (/allowlist), same idea.

Overview

What is the /whitelist command?

The /whitelist command controls the server's allow-list of players. When the whitelist is on, only listed players can join โ€” the simplest way to keep a server private to friends.

You turn it on/off, add and remove players, and reload the list, all in-game.

When to use it: Use /whitelist to make a server invite-only, allowing just the players you add.

At a glance

Syntax

Syntax
/whitelist <add|remove|on|off|list> [player]
commandtargetcoordsvaluerequiredoptional

See it

What it does

โœ“
โœ—
Only listed players get in

Anatomy

Every part, explained

  1. 1
    /whitelistCommandRequired

    Manages the server's allow list.

  2. 2
    <add|remove|on|off|list>ActionRequired

    Add, remove, toggle, or list entries.

  3. 3
    [player]PlayerOptional

    Needed only for add and remove.

Your turn

Try it yourself

Playground
3 tokens ยท press Enter to run

Copy & paste

Examples

/whitelist add Steve

Allow Steve to join.

/whitelist on

Turn the whitelist on.

/whitelist list

Show everyone on the whitelist.

Avoid these

Common mistakes

โœ•/whitelist Steve
โœ“/whitelist add Steve

Pick an action like add before the name.

โœ•/whitelist on Steve
โœ“/whitelist on

'on' just toggles it - no player needed.

Good to know

Frequently asked questions

How do you whitelist a player in Minecraft?
Run /whitelist add <player>, then /whitelist on to enforce it so only listed players can connect.
How do you turn the whitelist on or off?
Use /whitelist on to enforce it and /whitelist off to allow everyone again.
How do you see who is whitelisted?
Run /whitelist list to print every player currently on the allow-list.

Keep going

Related commands