This guide will show you how to ban and unban players on your Minecraft server.
⚠ Important Notes ⚠
You first need to understand that there are two ways to ban a player. You can either ban them by their Minecraft username, or by their IP.
Banning a player’s username will mean that you are banning just that Minecraft account, so he will be able to join your server from a different account if he has one.
Banning a player’s IP will mean that that player will not be able to join your server again even from another account because their IP will stay the same even if they will connect from a different account. However, if the player finds any way to change his IP, like a dynamic one, they will be able to join again.
The best way to ban an unwanted player is to ban both their username and IP.
How to Ban a Player
There are two different ways to ban a player, depending on if you want to ban just the username or the IP.
Banning a Username
To ban a player’s username you have to use the following command in-game:
/ban <username> [reason]
Examples:
/ban GGServers
Will ban the player calledGGServers
./ban GGServers hacker
Will ban the player calledGGServers
with thehacker
reason.
Banning an IP
To ban a player’s IP you have to use the following command in-game:
/ban-ip <IP|username> [reason]
Examples:
/ban-ip GGServers
Will ban the IP of the player calledGGServers
./ban-ip 0.0.0.0
Will ban the0.0.0.0
IP./ban-ip GGServers hacker
Will ban the IP of the player calledGGServers
with thehacker
reason.
How to Unban a Player
There are two different ways to unban a player, depending on if you want to unban just the username or the IP.
Unbanning a Username
To unban a player’s username you have to use the following command in-game:
/pardon <username>
Examples:
/pardon GGServers
Will unban the player calledGGServers
.
Unbanning an IP
To unban a player’s IP you have to use the following command in-game:
/pardon-ip <IP>
Examples:
/pardon-ip 0.0.0.0
Will unban the IP0.0.0.0
.
How to See the Banned Players/ IPs List
To see the banned player list you have to use the following command in-game:
/banlist players
To see the banned IPs list you have to use the following command in-game:
/banlist ips
More Security Measures
If you still have unwanted players joining your server and if want to protect your server better we suggest you also set a Whitelist or a plugin like AuthMe.