ModerationJava

/ban

Ban a player by name.

What is /ban used for?

What /ban is for

Permanently bars a player from a multiplayer server by username, with an optional reason shown to them on their next join attempt.

When to use /ban

Remove griefers, cheaters, and rule-breakers for good. For temporary removal use /kick; to block someone evading with a new account, /ban-ip targets their address.

Tips for /ban

View current bans with /banlist and reverse a ban with /pardon. Bans are stored in banned-players.json on the server.

Syntax

Parameters

targets
player name
Player(s) to ban.
reasonoptional
string
Shown to the banned player.

Command builder

Configure the options below to generate a ready-to-paste /ban command.

Optional — shown to the player.

Examples

  • Ban Griefer123 with a reason.

Common questions

How do I ban a player in Minecraft?

Run /ban <player> [reason] on a server. View current bans with /banlist and undo one with /pardon.

How do I ban someone's IP address?

Use /ban-ip <player or IP>. This blocks the address, stopping ban evasion with new accounts.

Permission level

/ban requires Server admin (op level 3). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.