This Minecraft tutorial explains how to use the /ban command with screenshots and step-by-step instructions.
- InvadedLands
- How To Make Ban Messages Public | SpigotMC
- Offering MINECRAFT LEGACYCHECKER V1.0 | 200K+ CPM | ONLY 8$
- Commands/ban – Official Minecraft Wiki
- Bans With BanID
- MineSuperior
You can either ban based on the name or IP of the player. Player based bans are effective at preventing the respective player (the minecraft account) from accessing the server, but does not stop the user (the physical person) from accessing it with an alternative account. IP based bans will ban the user based on the player’s last known IP. Mar 26, 2020 View Ban List. To view the player ban list from the console, type in banlist players.If you are in game with OP, type in /banlist players. #In Game Admin Command /banlist players #In Control Panel Console Command banlist players IP Bans. To view the player ban list from the console, type in banlist ips.
Let's explore how to use this game command.
Supported Platforms
The /ban command is available in the following versions of Minecraft:
Platform | Supported (Version*) |
---|---|
Java Edition (PC/Mac) | Yes |
Pocket Edition (PE) | No |
Xbox 360 | No |
Xbox One | No |
PS3 | No |
PS4 | No |
Wii U | No |
Nintendo Switch | No |
Windows 10 Edition | No |
Education Edition | No |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Background
The /ban command is an advanced server command that is only used if you are running a Minecraft server. If you are operating a Minecraft server that other players connect to, the /ban command can help manage which players are not allowed to connect the server.
To use the /ban command, you must be an operator of the Minecraft server. The /ban command is used to add a player to the server's blacklist (or ban list). This will ban that player from connecting to the Minecraft server. Use the /pardon command to allow the player to connect to the server again.
Requirements
To run server commands such as the /ban command, you have to first create a multiplayer server in Minecraft and be the operator of that server.
Ban Command
- Java
Ban Command in Minecraft Java Edition (PC/Mac)
InvadedLands
In Minecraft Java Edition (PC/Mac), the syntax to ban a player from a Minecraft server is:
Definitions
- name is the name of the player to ban from the server.
- reason is optional. It is the reason that the player has been banned. The reason will be displayed to the player if they try to connect to the server once they are banned. The reason will also be displayed in the server logs.
Examples
- Java
How To Make Ban Messages Public | SpigotMC
Example in Java Edition (PC/Mac)
To ban a player named TheNotWanted with no reason provided:
To ban a player named TheNotWanted with a reason:
How to Enter the Command
1. Open Server Console
To run a server command, the instructions vary depending on your version of Minecraft:
- For Java Edition (PC/Mac), open a server console. Use Command Prompt in Windows or Terminal on a Mac.
2. Type the Command
In this example, we will ban the player named TheNotWanted with the reason 'Too good at Minecraft' with the following command:
In this tutorial, we have entered the command in PC/Mac as a server command (see below).
You should see the message 'Banned player TheNotWanted' appear in the server console.
Once the command has been entered, the player will be added to the server's blacklist and banned from the server. Now, the player will no longer be allowed to play Minecraft on that server.
Banned Player will Immediately be Disconnected
If the player is logged in when the /ban command is issued, they will be disconnected with the following message:
In this example, the player named TheNotWanted will see the message 'Connection Lost. You are banned from this server.' in the game window.
Offering MINECRAFT LEGACYCHECKER V1.0 | 200K+ CPM | ONLY 8$
Banned Player can not Connect to Server Again
If the player tries to reconnect to the server, they will see the following message:
In this example, the player named TheNotWanted will see the message 'You are banned from this server!' with the reason 'Too good at Minecraft'. They will not be able to connect to the server until they are pardoned by the server operator.
Congratulations, you just learned how to use the /ban command in Minecraft!
Other Server Commands
Here are some other server commands you can use in Minecraft:
Other Game Commands
You can use other commands and cheats in Minecraft such as:
Restrictions |
---|
First introduced |
Removed |
Pardons a banned player.
The Classic equivalent of /pardon
.
- Syntax
Commands/ban – Official Minecraft Wiki
unban <name>
History[edit]
Bans With BanID
Java Edition Classic | |||||
---|---|---|---|---|---|
0.0.15a (Multiplayer Test 3) | Added /unban . | ||||
Java Edition Indev | |||||
0.31 | Removed all commands. |