/ban
Permanently bar a player from joining the server.
Overview
What is the /ban command?
The /ban command permanently blocks a player from joining the server, adding their name to the ban list with an optional reason. Use /ban-ip to block by IP address instead, and /pardon to reverse it.
It's the core moderation tool for keeping rule-breakers and griefers off your server.
When to use it: Use /ban to permanently remove a player from the server; pair with /ban-ip to block their address.
At a glance
Syntax
/ban <player> [reason]See it
What it does
Anatomy
Every part, explained
- 1
CommandRequired/banAdds a player to the server ban list.
- 2
PlayerRequired<player>The player to ban.
- 3
ReasonOptional[reason]Optional note stored with the ban.
Your turn
Try it yourself
Copy & paste
Examples
/ban GrieferBan a player with no reason.
/ban Griefer destroying buildsBan with a reason for the records.
/ban Steve repeated cheatingBan a cheater from the server.
Avoid these
Common mistakes
/ban Griefer 192.168.0.5/ban-ip 192.168.0.5Use /ban-ip to ban an IP address, not /ban.
/ban/ban GrieferYou must name the player to ban.
Good to know
Frequently asked questions
- How do you ban a player in Minecraft?
- Run /ban <player> [reason]. They're disconnected and can't rejoin until they're pardoned.
- How do you ban an IP address?
- Use /ban-ip <address or player> to block by IP, which stops bypassing a ban with a new username from the same connection.
- How do you unban someone?
- Use /pardon <player> to remove a name ban, or /pardon-ip <address> to lift an IP ban.
Keep going