Ban, kick and unban players
How do I ban or kick someone, and undo it?
kick Name removes them now; ban Name keeps them out; pardon Name lets them back.
Before you start: Op or console access.
Step by step
- To remove someone right now without a ban, run kick Name followed by a reason; they can rejoin.
- To keep someone out, run ban Name followed by a reason. They see the reason when they try to join.
- To block their connection too, run ban-ip Name, which bans the IP they are using now.
- To undo a ban, run pardon Name, and pardon-ip <ip> for IP bans.
- See all current bans with banlist (banlist ips for IP bans).
- For temporary bans install EssentialsX and use tempban Name 1d reason; it lifts itself after the time.
Check it worked: The player cannot join until pardoned.
Why it happens: Bans are stored in banned-players.json and banned-ips.json.
More guides on Console, commands, permissions, and players: