How to ban someone from a Minecraft server
Type ban Griefer123 Griefing at spawn in the server console, or /ban in chat as an operator. The player is kicked and cannot rejoin.
ban
Blocks players from joining the server by name, with an optional reason shown when they try to connect.
/ban <targets> [<reason>] Examples
/ban Griefer123 Bans Griefer123.
/ban Griefer123 Griefing at spawn Bans with a reason.
ban Griefer123 Cheating From the server console, without the slash.
Arguments
targetsRequired- Player name or selector.
reasonOptional- Text shown to the player. Defaults to a generic message.
What it does
An online player is kicked right away. You can also ban players who are offline by their exact username. Bans are stored in banned-players.json in the server folder; lift them with pardon.
Good to know
- Needs operator permission level 3 (admin).
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.