Follow these simple steps to Ban or Unban a player on your Minecraft Server using the console. Happy mining! ⛏️
Unbanning or Banning a player using SMpicnic.
We have a video tutorial for banning and unbanning players on your server:
Banning functionality is built into every Minecraft server out of the box, allowing you to prevent unwanted players from connecting to and playing on your server. Of course, you can also pardon, or unban, a player that you have previously banned if you would like them to be able to play on your server again.
Important Reminders:
- The commands mentioned in this tutorial are available in Minecraft Java Edition only.
- You need to be an operator (OP) to be able to use these commands in-game. You can set yourself as an operation by following this tutorial: Giving Operator (OP) to a Player
- To use these commands via your server's console, simply remove the / symbol before the command.
BANNING A PLAYER OR IP
There are a couple of different commands you can use to ban a player from your server.
/ban <username> [reason] Example: /ban Steve griefing | This command bans a player by their Minecraft username, preventing them from using their account to connect to your server. Providing a reason is optional. |
/ban-ip <IP|username> [reason]Example: /ban-ip 172.0.0.1 or /ban-ip Steve hacking | This command bans a player by their IP, preventing anyone from connecting to your server that tries to log in from the same IP address. You can use the username of an online player to ban the IP they're using. Providing a reason is optional. |
UNBANNING A PLAYER OR IP
Unbanning a player works in a similar manner. The following commands can be used to unban a player from your server.
/pardon <username> Example: /pardon Steve | This command unbans a player that has previously been banned from your server. |
/pardon-ip <IP Address> Example: /pardon-ip 172.0.0.1 | This command unbans an IP address that you've previously banned. Note that only valid IP addresses work with this command, not player names. |
VIEWING BANNED PLAYERS OR IP ADDRESSES
Listing all bans works in a similar way. The following commands can be used to view all active bans on your server.
/banlist ips | This command displays all IP addresses that are banned from your server. |
/banlist players | This command displays all Minecraft username of players banned from your server. |
This Minecraft tutorial explains how to use the /kick command with screenshots and step-by-step instructions.
You can use the /kick command to forcibly disconnect a player from a multiplayer world in Minecraft and provide an optional reason. Let's explore how to use this cheat (game command).
Supported Platforms
The /kick command is available in the following versions of Minecraft:
Yes (1.13) | |
No | |
No | |
No | |
No | |
No | |
No | |
No | |
No | |
Yes (1.12.0) |
* 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.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Kick Command
Examples
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Java Edition (PC/Mac), press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
In this example, we will forcibly disconnect the player called DigMinecraft from the multiplayer world with the following command:
/kick TheNotWanted HackingType the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the player named TheNotWanted will be forcibly disconnected from the multiplayer world. The reason displayed will be "Hacking".
Congratulations, you just learned how to use the /kick command in Minecraft!
Other Game Commands
You can use other commands and cheats in Minecraft such as:
Kicks a player off the server.
Syntax[]
kick <target> [<reason>] kick <name: target> [reason: message]Arguments[]
JE: <targets>: entity
BE: name: target: CommandSelector<Player>
JE: <reason>: message
BE: reason: message: CommandMessage
Result[]
any | the arguments are not specified correctly | Unparseable | Unparseable |
name: target is not in player type | N/A | Failed | |
<targets> or player: target fails to resolve to one or more online players | Failed | ||
the player is the host of the world. | N/A | ||
On success | Forcibly disconnects the players from the server, displaying an optional reason to them. |
Output[]
any | Java Edition | On fail | N/A | 0 | 0 |
On success | N/A | 1 | the number of targeted players | ||
Bedrock Edition | On fail | 0 | N/A | N/A | |
On success | the number of targeted players[needs testing] | N/A | N/A |
History[]
Commands