How to Ban Players on Your Server
![](https://storage.crisp.chat/users/helpdesk/website/ba33bb39ceb6d800/banner10_1mgbruh.png)
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
|| NOTE: Replace `
|| NOTE: The `[reason]` argument is optional, you can use the command to ban a player without giving any reason.
—
###### Examples:
* `/ban GGServers`
_Will ban the player called `GGServers`._
* `/ban GGServers hacker`
_Will ban the player called `GGServers` with the `hacker` reason._
—
### Banning an IP
To ban a player’s IP you have to use the following command in-game:
`/ban-ip
|| NOTE: Replace `
|| NOTE: The `[reason]` argument is optional, you can use the command to ban a player without giving any reason.
—
###### Examples:
* `/ban-ip GGServers`
_Will ban the IP of the player called `GGServers`._
* `/ban-ip 0.0.0.0`
_Will ban the `0.0.0.0` IP._
* `/ban-ip GGServers hacker`
_Will ban the IP of the player called `GGServers` with the `hacker` 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
|| NOTE: Replace `
—
###### Examples:
* `/pardon GGServers`
_Will unban the player called `GGServers`._
—
### Unbanning an IP
To unban a player’s IP you have to use the following command in-game:
`/pardon-ip
|| NOTE: Replace `
—
###### Examples:
* `/pardon-ip 0.0.0.0`
_Will unban the IP `0.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.
* [Here](https://help.ggservers.com/en-us/article/how-to-use-the-minecraft-whitelist-1nw0h6e/) is our guide for setting up a Whitelist.
* [Here](https://help.ggservers.com/en-us/article/how-to-set-up-and-use-authme-reloaded-plugin-12o66lm/) is our guide for using the AuthMe plugin.
—
| If you find any issues banning players on your server please contact us on live chat or via the [ticket system](https://help.ggservers.com/en-us/article/how-to-open-a-support-ticket-qjzuyd/).
—
# ❕ Useful Links ❕
– [Vanilla Commands](https://help.ggservers.com/en-us/article/vanilla-commands-11xx8gv/)
– [How to Use the Minecraft Scoreboard](https://help.ggservers.com/en-us/article/how-to-use-the-minecraft-scoreboard-wjvzx3/)
– [How to Change Your Server’s Difficulty](https://help.ggservers.com/en-us/article/how-to-change-your-servers-difficulty-1tjf97s/)