PowerupStack logoPowerupStack
Game serversPricingBlogLog inStart free
Minecraft Java Edition

How to ban and unban players on a Minecraft Java Edition server

Learn how to ban and unban players on a Minecraft Java Edition server, check active bans, and use a whitelist to keep a private server invite-only.

2 min read

Updated November 18, 2026

To ban Steve for griefing on a Minecraft Java Edition server, run /ban Steve griefing in chat. If Steve is online, the server disconnects him immediately. He cannot rejoin until an administrator lifts the ban.

Running a private server? Add your invited players to the whitelist and enable it before sharing the server address. This prevents strangers from joining in the first place, so you don’t have to ban each one after they arrive. Follow the Minecraft whitelist setup guide.

These commands apply to Java Edition. Vanilla Bedrock Dedicated Server has no built-in player ban command.

Ban a player

Run the following command in chat as a server operator with permission to ban players. Replace <player> with the player’s Minecraft username. You can leave out the reason or enter it as plain text after the name. The player sees the reason when they try to rejoin.

/ban <player> [reason]

In the PowerupStack Console, omit the leading slash from all commands in this guide. For example:

ban Steve griefing

Check active bans

To see which players are currently banned, run:

/banlist players

Use /banlist ips to check IP bans or /banlist to see both lists. Java Edition stores player bans in banned-players.json in the server’s root directory.

Unban a player

To lift Steve’s player ban, run:

/pardon Steve

If the whitelist is enabled, Steve still needs whitelist access to rejoin. An IP ban can also block the connection. See how to resolve a Minecraft server ban for help with an IP ban or a ban appeal.

Can a ban expire automatically?

Vanilla Java Edition bans stay in effect until an administrator lifts them. To end a ban after a set time, run /pardon with the player’s name when the time is up, or use a moderation plugin that supports temporary bans on your server software.

PowerupStack

Launch fast, scale confidently, and keep your community online with modern game server hosting.

Browse games

|

Knowledgebase
PowerupStack
  • Subscriptions
  • Knowledgebase
  • Domains
  • Blog
  • Status
  • Contact
Social

© 2026 PowerupStack. All rights reserved.

Powered by PowerupStack