All commands
๐Ÿšซ
AdminJava โœ“Bedrock โœ“

/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

Syntax
/ban <player> [reason]
commandtargetcoordsvaluerequiredoptional

See it

What it does

โœ•
The player is banned

Anatomy

Every part, explained

  1. 1
    /banCommandRequired

    Adds a player to the server ban list.

  2. 2
    <player>PlayerRequired

    The player to ban.

  3. 3
    [reason]ReasonOptional

    Optional note stored with the ban.

Your turn

Try it yourself

Playground
2 tokens ยท press Enter to run

Copy & paste

Examples

/ban Griefer

Ban a player with no reason.

/ban Griefer destroying builds

Ban with a reason for the records.

/ban Steve repeated cheating

Ban a cheater from the server.

Avoid these

Common mistakes

โœ•/ban Griefer 192.168.0.5
โœ“/ban-ip 192.168.0.5

Use /ban-ip to ban an IP address, not /ban.

โœ•/ban
โœ“/ban Griefer

You 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

Related commands