How to turn on the whitelist and add players

Players and permissions · updated 27 November 2026

The whitelist is a list of players who are allowed to join the server. When it is on, everyone else sees a message that they are not whitelisted. It is the easiest way to run a private server for friends.

How to turn on the whitelist

Type in the panel console:

whitelist on

Or permanently in server.properties: white-list=true. It is also worth setting enforce-whitelist=true. Then, when the whitelist is turned on, the server immediately kicks players who are not on the list.

Adding and removing players

In the console (without /) or in the game as OP (with /):

whitelist add Nick
whitelist remove Nick
whitelist list

Changes work immediately, without a restart. The list is saved in the whitelist.json file.

Turning off the whitelist

whitelist off

Frequently asked questions

A player is on the whitelist but still cannot join.

Check the spelling of the nickname. If you changed online-mode, the player has a different identifier, so remove them and add them again. After editing whitelist.json by hand, type whitelist reload.

Does an OP have to be on the whitelist?

Yes. OP status does not bypass the whitelist, so add yourself too.

Does the whitelist work on a cracked (offline-mode) server?

It does, but it only checks the nickname. Anyone can type someone else's nickname, so on such a server you also need a login plugin (offline mode guide).