News
Game
Guides
Downloads
Versions
/ban
COMMANDS SERVER ADMIN SERVER · LEVEL 3 Added in 1.14 or earlier

/ban command in Minecraft

/ban blocks a player from joining the server for good, with an optional reason shown on their screen. It is a dedicated server command, used from the console or by operators with level 3 or more. A banned player who is online is disconnected at once.

Syntax

/ban <targets> [<reason>]

// Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.

ArgumentExpectsWhat it does
targetsPlayer nameName, UUID or selector of the player; an offline player works if you type the exact name.
reasonoptionalMessageOptional free text shown to the player and saved in the ban list, for example Griefing at spawn.
All 2 forms
  • /ban <targets>
  • /ban <targets> <reason>

Examples

Ban a player

/ban Steve

Steve is disconnected if online and can no longer join.

Java 26.3

Ban with a reason

/ban Steve Griefing at spawn

The reason appears on Steve's screen and in the ban list.

Java 26.3

See all banned players

/banlist players

Lists every banned account with who banned it and why.

Java 26.3

Lift the ban

/pardon Steve

Steve can join the server again.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

How a ban works

The ban is tied to the account, not to the name you typed, so a name change does not get around it. It is saved in banned-players.json and survives restarts. When the player tries to connect, the screen says You are banned from this server. followed by your reason. You can ban someone who is offline by typing the exact name. There is no duration: a ban lasts until you lift it with /pardon.

Choosing the right tool

  • /kick disconnects a player who can come back right away.
  • /ban blocks one account.
  • /ban-ip blocks a whole IP address, useful against new accounts but risky on shared networks.
  • A /whitelist keeps out everyone you have not invited.

Common errors

Nothing changed. The player is already banned means the account is already on the list, which you can check with /banlist. In singleplayer and LAN worlds, /ban does not exist; there, /kick is the only way to remove a guest.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/ban: FAQ

Can I ban a player for a limited time?

Not in vanilla Java Edition. A ban lasts until an operator runs /pardon; timed bans need a plugin or a mod.

Can a banned player come back with another account?

Yes, a ban only blocks one account. If the same person keeps returning, /ban-ip blocks their address, and a whitelist blocks everyone who is not invited.

How do I use /ban?

On a server, as an operator or from the server console: /ban <targets> [<reason>]. It does not exist in single player.

Who can use /ban?

Server operator, level 3. Only on a dedicated server: the command does not exist in single player or in a world opened to LAN.

Related commands

/pardonServer/banlistServer/kickServer/ban-ipServer/pardon-ipServer/whitelistServer/stopServer/save-allServer