Skip to main content

/ban

Bans a player from the server. Banned players cannot connect until unbanned.

Category
Server
Permission Level
Admin
Version Added
1.0

Syntax

/ban <targets> [<reason>]

Parameters

NameTypeRequiredDescription
targetsgame_profileRequiredThe player to ban.
reasonmessageOptionalThe reason for the ban, displayed to the banned player.

Examples

/ban Steve Griefing

Bans Steve from the server with the reason "Griefing".

/ban Griefer123

Bans the player Griefer123 with no specific reason.

Common Mistakes

Notes

Bans persist across server restarts. Use /pardon to unban. For IP-based bans, use /ban-ip. The ban list is stored in banned-players.json.

Related Commands

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting