How to ban or unban players on your Minecraft server

Print
  • 0

You can ban or unban Minecraft players from Console without editing the ban files manually. Player bans block a username, while IP bans block a connection address.

Ban And Unban Players

  1. Open your Minecraft server in the control panel, then open Console.
  2. Ban a player with:
    ban PlayerName reason
  3. Ban an IP address with:
    ban-ip IPAddress reason
  4. Unban a player with:
    pardon PlayerName
  5. Unban an IP address with:
    pardon-ip IPAddress

You can also review banned-players.json and banned-ips.json in File Manager while the server is stopped.

Minecraft ban pardon and IP ban commands shown in the Ptero console

Check the player identifier

Use the exact identifier the game expects, such as a username, SteamID64, UUID, or player ID. Copy it carefully, because one wrong digit or character can apply the change to the wrong player or stop it working.

After making the change

Restart the server if the game requires it, then test with the affected player. If the change does not apply, check the console or log output for permission or formatting errors.


Was this answer helpful?

Related Articles

« Back

Follow us on Social Media

Stay in the loop! Follow our social media accounts and stay up-to-date with the latest news, announcements, tips & tricks and behind-the-scenes insights!