Articles on: Minecraft

How to Ban and Unban Players on a Minecraft Server

When you run a Minecraft server, you’ll sometimes run into players who cause trouble. Maybe they're destroying other people’s builds, cheating, or flooding the chat with spam. In these cases, it is sometimes necessary to ban a play to preserve a fun, fair, and enjoyable experience for everyone else. And it doesn’t have to be permanent. Sometimes, people deserve a second chance.

In this guide, we’ll cover all the commands you need to know to quickly ban (and later unban) players from your Minecraft server.

If you have server operator (OP) power, you can use any of these commands directly within the game, to get the same effect.

Step 1:



Log in to your Nexus Hosting Account.



Step 2:



Once on the dashboard, find and select your intended Minecraft server.



Step 3:



If you're not already viewing your server’s console, click the Terminal button in the sidebar.



Step 4:



To ban a player, preventing them from rejoining your server, enter the following command and press Enter:

ban <username> [reason]



If you are facing a particularly persistent troublemaker, you can ban the IP address to ensure they cannot simply create another account and log back in. Enter the following command:

ban <ip address>



Step 5:



To view a list of all banned players or all banned IP addresses, enter one the following commands:

banlist players

banlist ips



Step 6:



If you decide you would like to unban someone, you can “pardon” the player with the following command:

pardon <username>

If you've also banned their IP address, you'll need to pardon it separately:

pardon <ip address>


Updated on: 29/03/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!