← Back to Command Directory ← Back to Home

/ban

Adds a player to the server's ban list, preventing them from joining.

Syntax

/ban <targets> [<reason>]

Parameters

NameRequiredDescription
targetsYesThe player(s) to ban. Can be a player name or selector.
reasonNoAn optional message explaining why the player was banned.

Examples

/ban Steve
/ban Steve Griefing other players

Notes

Command Block Use

This command is not usable from command blocks. It is a server-operator-only command designed for multiplayer administration.

Related Commands