TABI CLOUD
Minecraft

Minecraft Whitelist and Ban Commands: Control Who Joins Your Server

5 min read · Updated October 2026 · By Tabi Cloud

Java servers have built-in tools to limit who can join and to remove problem players. They work in the Console tab and in game for operators.

Whitelist

Run these commands:

You can also set white-list=true in server.properties. Add enforce-whitelist=true so players who are not listed are kicked when the whitelist reloads or changes.

Bans

The files

The data is stored in whitelist.json, banned-players.json, banned-ips.json and ops.json in the server folder. They are JSON, so a missing comma can break them. Edit them only with the server stopped, or use commands where possible.

Offline mode warning

Whitelist entries use UUIDs. Servers with online-mode=false generate different UUIDs from names, so entries can stop working if you change modes or use a proxy. Keep online-mode consistent.

Bedrock

Bedrock uses allowlist commands, such as allowlist add and allowlist remove, with the setting allow-list in server.properties.

Tips

Contact us on Discord for help.

Want your own server? Join our Discord and tell us the game. We set it up and send you the details. Need help with an error from this guide? Open a ticket there.

GET STARTED ON DISCORD

More guides

MinecraftHow to make a Minecraft server in 5 stepsMinecraftVanilla, Paper, Fabric or Forge: which Minecraft server type should you pick?MinecraftHow to install plugins on a Minecraft server