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.
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
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.