Adds a player to the server's ban list, preventing them from joining.
/ban <targets> [<reason>]
| Name | Required | Description |
|---|---|---|
| targets | Yes | The player(s) to ban. Can be a player name or selector. |
| reason | No | An optional message explaining why the player was banned. |
/ban Steve /ban Steve Griefing other players
banned-players.json on the server.This command is not usable from command blocks. It is a server-operator-only command designed for multiplayer administration.