/ban

Op level 3Java 26.3

Bans a player from the server. Its basic form is /ban <targets>; it has 2 syntax forms and 2 arguments. Permission: Op level 3.

Who can use it
Op level 3
Syntax forms
2
Arguments
2

/ban syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

/ban <targets>
/ban <targets> <reason>

/ban examples

Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.

/ban Griefer123 Griefing at spawn
Bans the player and shows the reason when they try to join.
/ban Griefer123
Bans the player with the default reason.

/ban arguments

What each argument expects, with the limits the game enforces.

/ban arguments
ArgumentExpectsLimits
<targets>Player name or selector—
<reason>Chat message (selectors expand to names)—

Related commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Bans a player from the server. It has 2 syntax forms and can be run by: Op level 3.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/ban FAQ (Java 26.3)

What does /ban do in Minecraft?

Bans a player from the server.

What is the syntax of /ban?

The basic form is /ban <targets>. All forms are listed above.

What is an example of /ban?

/ban Griefer123 Griefing at spawn — Bans the player and shows the reason when they try to join.

Do you need cheats for /ban?

Yes: Op level 3. In singleplayer turn on Allow Cheats (or open to LAN with cheats).