How to Ban and Unban Players on Your Minecraft Server

Learn how to ban, unban, and manage banned players on your Minecraft server.

Banning removes a player from your server and prevents them from rejoining. You can ban by username or IP address.

Banning a Player

Open the Console

Access the XGamingServer panel and go to Console.

Run the ban command

Type the ban command:

ban PlayerName Reason for the ban

The player will be immediately kicked and unable to rejoin.

💡 Tip: Banning by username is preferred over IP bans since players can change their IP address.

Unbanning a Player

Open the Console

Go to Console on the panel.

Run the pardon command

pardon PlayerName

The player can now rejoin the server.

Commands Reference

CommandDescription
ban [player] [reason]Ban a player by username
ban-ip [ip] [reason]Ban an IP address
pardon [player]Unban a player by username
pardon-ip [ip]Unban an IP address
banlistView all banned players
banlist ipsView all banned IP addresses

Managing Ban Files

Ban lists are stored as JSON files in your server root:

  • banned-players.json — Username bans
  • banned-ips.json — IP address bans

You can edit these directly via Files if needed.

📝 Note: You need OP permissions to use ban commands in-game. Commands entered in the panel Console always have full permissions.

See also: Adding Admins | Adding a Whitelist

If you need help, join our Discord.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page