Minecraft server help centre

Players

Minecraft whitelist and operator levels explained

Minecraft has two simple tools for control, built into the game itself. The whitelist decides who can join. Operator status decides who can use admin commands. Both work without any plugins, on Paper, Fabric, Forge and vanilla alike.

In short

To whitelist a player on your Minecraft server, put their exact username on the whitelist in the Players tab, or run whitelist add with the name in the console, and switch the whitelist on. To make someone an operator, type op with their name in the console. Operators get a level from 1 to 4: level 2 allows cheat commands, level 3 kicking and banning, and level 4 everything, including stopping the server.

The Minecraft server whitelist

With the whitelist on, only players on the list can join. Everyone else sees a message that they are not whitelisted. For a server among friends, turn it on before you share the address.

In the panel

  1. Open the Players tab.
  2. Add each friend's exact Minecraft username to the whitelist.
  3. Switch the whitelist on in the whitelist settings.
The Whitelist tab of the Players page with the Add to whitelist field
Type the exact username and click Add to whitelist.

With commands

whitelist on
whitelist add Sam
whitelist remove Sam
whitelist list

Type these in the Console without a slash, or in the game with a slash if you are an operator.

How to op yourself on your Minecraft server

A new server has no operators, not even its owner. Give yourself op once, from the panel:

  1. Open the Console tab while the server runs.
  2. Type op followed by your exact Minecraft name, without a slash, and press Enter.
  3. The console answers with a line that you were made a server operator. In the game you can now use commands with a slash.

The Operators tab under Players does the same with a field and a button. Either way, it works for your own name and for anyone you trust.

The whitelist.json file and adding players by hand

The whitelist is stored in whitelist.json in the top folder of the server. Each entry holds the account ID (UUID) and the name of one player. The ID is what counts: a name typed into the file without the right ID lets nobody in.

So add players with the command or in the Players tab, which look up the ID for you. If you did edit the file, type whitelist reload in the console so the server reads it again without a restart.

Kick people who are no longer on the list from your Minecraft server

Removing someone from the whitelist does not throw them out while they are online. The setting enforce-whitelist=true in server.properties does: with it on, anyone not on the list is removed as soon as the whitelist is reloaded or turned on.

Whitelist not working on your Minecraft server

What happensWhyWhat to do
A player who is not on the list can still joinThe whitelist is off, or the player is an operator; operators can always joinTurn the whitelist on, and check ops.json for names that should not be there
A friend on the list is turned awayA typo in the name, or they play Bedrock on a crossplay serverCheck the spelling in the Players tab; add Bedrock players with fwhitelist add
Someone removed from the list stays onlineRemoving does not kick by itselfKick them, or use enforce-whitelist
Changes in whitelist.json do nothingThe server only reads the file at startup or on reloadType whitelist reload

The allowlist on a Bedrock Minecraft server

A Bedrock server does the same job under another name. Since 2022 it is called the allowlist: allow-list=true in server.properties switches it on, the names are kept in allowlist.json, and the console commands are allowlist add, allowlist remove and allowlist list. Operators on Bedrock are kept in permissions.json with the roles visitor, member and operator.

On a crossplay server you do not need any of this: the server is Java, so it uses the normal whitelist for Java players and fwhitelist for Bedrock players.

Minecraft server operators

An operator, or op, can use admin commands. Add one in the Players tab under operators, or with op Sam in the console. deop Sam takes it away.

The Operators tab of the Players page with the Add operator field
The Operators tab of Players. Add operator does the same as op in the console.

Operators are stored in ops.json, each with a level from 1 to 4. The level decides how far their power goes.

The Bans tab next to it lists banned players and lets you ban or pardon one without a command.

The Bans tab of the Players page with the Ban player field
Ban player keeps someone out by username; remove them from the list to let them back in.
  1. Open the Players tab and find the player in the list.
  2. Open the menu next to the name and choose Ban player.
  3. Type a reason, for example Griefing at spawn.
  4. Click Ban player. A player who is online is kicked and cannot connect again until you unban them.
Banning a player from the menu next to the name in the Players tab, with a reason

To let them back in, open the Bans tab, open the menu next to the name and choose Unban player.

What is in ops.json

Each operator is one entry in ops.json with four fields:

FieldWhat it does
uuidThe account ID of the player, which is what the server checks
nameThe name at the time they were made op, there for you to read
levelThe operator level, from 1 to 4
bypassesPlayerLimitWith true, this operator can join even when the server is full

There is no command that lists the operators, so this file is the place to check who has op. Change a level or remove an entry with Edit in the Files tab while the server is stopped, then start it again.

The four Minecraft op levels

LevelWhat it allowsGive it to
1Build inside the spawn protection areaTrusted builders
2Cheat commands: gamemode, give, teleport, time, weather, and command blocksEvent hosts, builders on a creative server
3Player management: kick, ban, op and deop othersModerators you trust
4Everything, including stopping the server and savingOnly yourself

New ops get the level set by op-permission-level in server.properties, which is 4 unless you change it. To give someone a lower level, change their level in ops.json in the Files tab and restart, or lower op-permission-level before you op them.

Which op level to give whom

A rule of thumb for a server among friends: keep level 4 for yourself, and give the lowest level that still lets someone do their job.

  • A friend who builds at spawn: level 1 is enough, or switch spawn protection off.
  • Someone who runs events with teleports, items or weather: level 2. They can also give themselves anything, so pick someone you trust with that.
  • A moderator who handles griefers: level 3, or better a rank in a permissions plugin, so they can ban without being able to cheat.
  • A co owner who should restart the server or change files: give them access to the panel rather than op, see give someone access to your server.

Op in the game and access to the panel are two separate things. An operator cannot touch files, backups or billing, and a panel user is not an operator in the game until someone ops their Minecraft name.

Minecraft spawn protection

By default, players who are not ops cannot break or place blocks within 16 blocks of the world spawn. That protects the spawn on public servers but confuses friends on a private one. Set spawn-protection=0 in server.properties to switch it off.

How big the spawn protection area is

The number in spawn-protection is the distance from the spawn point in each direction. The protected area is a square of twice that number plus one block: the default 16 protects a square of 33 by 33 blocks around spawn, over the full height of the world.

  • Without a single operator on the server, spawn protection does nothing: everyone can build at spawn, whatever the setting says.
  • It only protects the overworld spawn. The Nether and the End have no spawn protection.
  • It only stops breaking and placing blocks and using some blocks. Mobs, explosions and fire still do damage, so on a public server a claim plugin protects spawn better.

When the built in Minecraft tools are not enough

Op levels are coarse. A level 2 op can give themselves any item. If you want a helper who can mute and kick but not cheat, use a permissions plugin instead. Set up permissions with LuckPerms walks through it.

Bans are in the Players tab as well, or with ban Sam and pardon Sam. A ban by IP (ban-ip) also catches a second account on the same connection, but it can hit innocent people who share a home connection.

Private, public or invite only: how to set up access

Kind of serverWhitelistWhat else to use
Friends onlyOn, with every friend addedOp for yourself, maybe level 2 for one helper
Invite only communityOn, players are added after they apply, for example in DiscordA moderator rank in LuckPerms and a griefing log
Public serverOffLand claims, a griefing log, bans and a moderator team with permissions
Closed for a whileMaintenance mode instead of the whitelistTurn it off again and everything is as before

For the last one, Minecraft server maintenance mode shows how to close the server without touching your whitelist. Against griefers on an open server, see stop griefing on your server.

Questions from Minecraft server owners

Does the whitelist work for Bedrock players on a crossplay Minecraft server?

Yes, but add them with Floodgate's own command, fwhitelist add, followed by their Bedrock name. The normal whitelist command expects a Java account.

Is the Minecraft username case sensitive on the whitelist?

No. Minecraft matches the account, not the capitals. The spelling does have to be right, including underscores and numbers.

A Minecraft player changed their name. Are they still whitelisted?

Yes. The whitelist stores the account ID next to the name, so a name change does not remove them.

Can operators join when the whitelist is on?

Yes. An operator can always join, even without being on the whitelist. Remove op from anyone who should be kept out.

How do I see who is op on my Minecraft server?

Open ops.json in the Files tab, or the Operators tab under Players. Minecraft has no command that lists operators.

How do I add someone to the whitelist while the server is offline?

Start the server and add them in the Players tab or with whitelist add. Writing their name into whitelist.json by hand does not work without their account ID.

What is the difference between op and admin on a Minecraft server?

Op is the built in admin status of Minecraft, with four levels. Admin is usually a rank from a permissions plugin such as LuckPerms, which can give exactly the commands you choose.

Checked against Minecraft Java 26.2, September 2026. Written by the Cheapest Minecraft Hosting team, first published , updated .