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 banThe 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.
Commands Reference
| Command | Description |
|---|---|
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 |
banlist | View all banned players |
banlist ips | View all banned IP addresses |
Managing Ban Files
Ban lists are stored as JSON files in your server root:
banned-players.json— Username bansbanned-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
Consolealways have full permissions.
See also: Adding Admins | Adding a Whitelist
If you need help, join our Discord.
How is this guide?
