Skip to content
Black Friday · −50 % off your first invoice on Xeon VPS with code BF50XEON, −30 % off our other services with BF30 · domain names and dedicated servers excluded See our plans
CloudFive
Log in

01

Three locks: the account, the whitelist, the rights

These three mechanisms are often mixed up, although each one answers a different question:

  • Is this player who they claim to be? That is the job of online-mode, in server.properties: the server has every connection checked by Minecraft's account servers.
  • Are they allowed in? That is the whitelist, stored in whitelist.json: only listed accounts get through.
  • What can they do once in game? That is operator status, stored in ops.json with a level from 1 to 4, or a permissions plugin that hands out rights command by command.

The whitelist and the operator list recognise a player by their UUID, the unique identifier of their account, not by their username. Everything therefore rests on the first lock: without account verification, the other two no longer protect much.

This guide explains how it works and what the files contain. For the list of everyday commands (kick, ban, pardon…), keep the Minecraft admin commands guide at hand; for the other lines of the configuration file, see the server.properties guide.

02

Turning the whitelist on: white-list and enforce-whitelist

Two lines of server.properties control the whitelist:

white-list=true
enforce-whitelist=true
  • white-list: at true, an account that is not on the list is refused when it connects.
  • enforce-whitelist: at true, players who are already connected but not on the list are kicked as soon as the list is changed by command (whitelist remove, whitelist on) or reloaded. At false (the original value), a player removed from the list stays in game until they log out.

No restart is needed to turn it on: the commands do the same thing live. Add the players first, then enable it:

whitelist add Pseudo
whitelist on
whitelist list

In the server console, commands are typed without a slash. In game, you need to be an operator of level 3 or higher and type /whitelist. The player does not have to be online to be added or removed.

Two points avoid nasty surprises:

  • Operators always get in. On Minecraft Java, an operator can connect even if they are not on the whitelist. Removing someone from the list is therefore not enough if they are also an operator: take that status away first with deop.
  • The original value has changed. Since Minecraft Java 26.3, a brand-new server is created with white-list=true; on earlier versions the original value was false. An updated server keeps the line already written in its file. If nobody can join a freshly created server, look at this line before searching elsewhere.
03

whitelist.json: format, UUIDs and editing by hand

The whitelist.json file sits at the root of the server, next to server.properties. It is a list of entries, each with the account's UUID and its username:

[
  {
    "uuid": "01234567-89ab-cdef-0123-456789abcdef",
    "name": "Pseudo"
  },
  {
    "uuid": "89abcdef-0123-4567-89ab-cdef01234567",
    "name": "AutrePseudo"
  }
]
  • The UUID is what counts. A player who changes their username keeps their UUID: they stay on the list, even if the old name is still written there.
  • The command is safer than editing by hand. whitelist add Pseudo looks up the UUID by itself; with online-mode=true, the username must belong to a real account and be spelled correctly.
  • After editing the file, type whitelist reload so the server reads it again. A missing comma or a UUID written without its hyphens is enough to make an entry, or even the whole file, unusable: watch the console when it reloads.
  • Do not change online-mode afterwards. In offline mode, the server builds its own identifier from the username, different from the account's official UUID. A whitelist and an operator list built in one mode no longer match the players in the other.

On a server open to Bedrock players through Geyser and Floodgate, those players have their own identifier and a prefixed username. Floodgate provides a dedicated command, which writes to the same whitelist.json:

fwhitelist add Pseudo
fwhitelist remove Pseudo

The username is given without its prefix. The rest of the setup is described in the Java and Bedrock crossplay guide.

04

Operators: the four levels and ops.json

op Pseudo grants operator status, deop Pseudo removes it. The first operator is named from the console, which has every right. What an operator can do depends on their level; each level includes the ones below it:

  • Level 1: build inside the protected area around the spawn point.
  • Level 2: most gameplay commands (/gamemode, /give, /tp, /time…) and the use of command blocks.
  • Level 3: player management, including /kick, /ban, /whitelist and /op.
  • Level 4: every command, including those that affect the server itself such as /stop.

The level given by the op command comes from the op-permission-level line of server.properties, which is 4 originally: if you change nothing, every operator can stop the server and name other operators. Lowering this value does not alter operators who are already named, whose level is written in ops.json:

[
  {
    "uuid": "01234567-89ab-cdef-0123-456789abcdef",
    "name": "Pseudo",
    "level": 2,
    "bypassesPlayerLimit": false
  }
]
  • level: this operator's level. This is where you give each person a different level, for example 4 for yourself and 2 for a builder.
  • bypassesPlayerLimit: at true, this operator can join even when the server is full.

Unlike the whitelist, this file has no reload command: stop the server, edit ops.json, then start it again. And keep the list short: from level 2 upwards, an operator can give themselves any item and switch to creative mode.

05

Precise roles with LuckPerms

Four levels remain coarse: you cannot grant the right to kick without also granting the right to name operators. A permissions plugin solves this. LuckPerms is the most widely used: it exists as a plugin for Paper and Purpur, and as a mod for Fabric, Forge and NeoForge. Drop it into the plugins (or mods) folder and fully restart the server.

Right after installation, nobody has access to the LuckPerms commands. Give yourself that access from the console, then create a group and grant it the permissions you want:

lp user VotrePseudo permission set luckperms.* true
lp creategroup moderateur
lp group moderateur permission set minecraft.command.kick true
lp group moderateur permission set minecraft.command.ban true
lp user Pseudo parent add moderateur
  • A permission is a name made of several parts separated by dots. On a plugin server such as Paper, the game's own commands take the form minecraft.command. followed by the command name; each plugin documents its own. On Fabric, Forge or NeoForge, only mods designed for permissions respond to them.
  • Every player inherits from the default group: that is where shared rights go.
  • A group can inherit from another: lp group admin parent add moderateur gives the admin group everything the moderateur group has.
  • lp user Pseudo parent remove moderateur takes someone out of a group, and lp group moderateur permission unset minecraft.command.ban removes a permission.
  • /lp editor opens a web editor where everything is set with the mouse; /lp verbose on Pseudo shows live which permissions are checked for a player, handy for finding the name of the one that is missing.

Once the groups are in place, take operator status away from your moderators: an operator keeps their operator rights whatever group they are in. Keep op for one or two trusted people. The other basic plugins are presented in the essential Minecraft plugins guide.

06

online-mode and server security

online-mode=true is the original value and should stay that way. At false, the server believes the announced username without checking anything: whoever connects under an operator's name gets their rights, and the whitelist only filters usernames that anyone can borrow.

The one exception: a network placed behind a proxy such as Velocity. The game servers there run with online-mode=false because the proxy checks accounts for them. They must then accept connections from the proxy only (player forwarding in modern mode with a shared secret, plus a firewall), otherwise anyone can connect to them directly under the username of their choice.

The settings that matter, in order:

  1. Keep online-mode=true on any server that can be reached directly.
  2. Turn the whitelist on on a private server, with enforce-whitelist=true so that a removal takes effect straight away.
  3. Limit operators: few names in ops.json, a level suited to each person, and LuckPerms for the moderation team.
  4. Leave RCON disabled (enable-rcon=false, the original value) if you do not use it: this remote access carries the console's rights. Otherwise, choose a long, unique password.
  5. Download plugins and mods from their official page: a booby-trapped file runs with all the server's rights and can name an operator behind your back.
  6. Reread both files from time to time: a former moderator who is still an operator, or a passing friend left on the whitelist, are the most common oversights.

The whitelist does not hide the server and does not stop a network attack: it only refuses accounts that are not listed. Protection against DDoS attacks is handled at the hosting level.

07

On a CloudFive server

On our Minecraft plans, the whitelist and the operators are managed from the server's page, in the client area, without editing whitelist.json or ops.json. The server properties are set there too, with clear labels, without opening server.properties.

  • The live console in the client area takes the commands from this guide: whitelist, op, deop and the LuckPerms ones.
  • The loader and the version (Vanilla, Paper, Purpur, Fabric, Forge, NeoForge) are chosen from the server's page, and a backup is made before each version change. For LuckPerms, pick Paper or Purpur on the plugin side, or a mod loader: a Vanilla server loads neither plugins nor mods.
  • Plugins are searched on Modrinth from the server's page, by name, version and loader. If the LuckPerms build that matches your loader is not listed there, download it from the plugin's official website and drop it into the plugins (or mods) folder from the Files tab, by drag and drop.
  • Automatic backups, kept over a rolling 5 days, are restored in one click if a change of rights goes wrong.

The servers are in France, on Ryzen 9 9950X, with Anti-DDoS Premium included: it deals with network attacks, which neither the whitelist nor permissions do. If you want to run everything yourself, for example a network of servers behind a Velocity proxy, a Ryzen VPS gives you root access; then follow the Minecraft server on a VPS guide.

08

Frequently asked questions

How do I turn on the whitelist on a Minecraft server?

Add the players first with whitelist add followed by their username, then type whitelist on in the console. The white-list=true line in server.properties does the same at startup. With enforce-whitelist=true, connected players who are not listed are kicked as soon as the list is changed by command or reloaded.

Where is the whitelist.json file and how do I edit it?

At the root of the server, next to server.properties. Each entry holds the account's UUID, with its hyphens, and its username. After editing it by hand, type whitelist reload; the whitelist add command remains safer, because it finds the UUID by itself.

Why can a whitelisted player not join the server?

Most often, the stored UUID is not theirs: a misspelled username, a file edited without whitelist reload, or online-mode changed after the list was created. A Bedrock player coming through Geyser is added with Floodgate's fwhitelist command.

What are the op levels in Minecraft?

Four levels, each including the ones below: 1 bypasses spawn protection, 2 unlocks gameplay commands and command blocks, 3 player management (kick, ban, whitelist, op), 4 every command including stop. op-permission-level is 4 originally.

How do I give each player a different op level?

In ops.json, each operator has their own level field, from 1 to 4. Stop the server, change the value, then start it again: this file has no reload command. The op-permission-level line only sets the level given to future operators.

Can I use the whitelist with online-mode set to false?

It works, but no longer protects anything: without account verification, anyone can connect under a listed username, or under an operator's. Keep online-mode at true, except on a server placed behind a proxy that checks accounts and is the only one able to connect to it.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay