Kick vs ban: what's the difference?
A kick (kick) only disconnects a player, who can rejoin straight away, while a ban (ban) keeps them out until someone unbans them. Use a kick as a warning or to stop a problem right now, and a ban as a lasting punishment.
| Command (in the console) | What it does | How to undo it |
|---|---|---|
kick Steve Spamming chat |
Disconnects the player with the given reason | Nothing to undo – they can rejoin |
ban Steve Griefing |
Bans the player's account (by UUID) | pardon Steve |
ban-ip 203.0.113.5 Alt accounts |
Bans an IP address | pardon-ip 203.0.113.5 |
ban-ip Steve |
Bans the IP of a player who is online right now | pardon-ip with their address |
banlist |
Lists banned players (banlist ips – banned IPs) |
– |
Good to know:
- The reason is optional. Without one, the server uses the default "Kicked by an operator." or "Banned by an operator." Operators see the reason too, and it's written to the log.
- These commands only work on a dedicated server – you can't ban anyone in singleplayer or on a LAN world.
- In game you need OP (permission level 3 or higher; operators get level 4 by default). In the server console, type commands without the
/; in game, start them with/. - A ban beats the whitelist and OP. A banned player can't join even if they're whitelisted or an operator.
kick also takes selectors – kick @a[name=!Steve] Restart kicks everyone except Steve. The full set of admin commands is in Minecraft server commands.
How do you ban a player in the Spot.gg panel?
Click the player's name in "Console" → "Players online" or in the "Players" tab and choose "Ban". The panel asks for a reason and sends the ban command to the server for you.
On Spot.gg Minecraft server hosting there are three places to manage bans:
- "Console" → "Players online" – the menu next to a player who's on the server right now: "Kick", "Ban", "Private message", game mode and teleport.
- The "Players" tab – everyone who has ever joined the server. From here you can also ban someone who's offline (say, a griefer who already logged off). Banned players get a "Banned" badge; hover over it to see the ban reason. "Unban" is in the same menu.
- "Console" → the "Player bans" and "IP bans" sections below the console – the full ban lists with reason and date. The "+" button on "Player bans" bans a player by name, the one on "IP bans" bans an IP address. The button next to an entry lifts the ban ("Unban" or "Unblock").
Keep in mind:
- The server has to be running. Quick actions send commands to the live server – when it's off, the panel shows "Start the server to use quick actions."
- A ban reason in the panel can be up to 100 characters: letters, digits, spaces and
. , ! ? - : ( ). For a longer reason or other characters, use thebancommand in the console. - Kicking from the panel has no reason field – if you want the player to see why, type
kick name reasonin the console. - Quick actions work for names made of letters, digits and
_(up to 16 characters). Unusual names (e.g. on an offline-mode server) can be banned with a console command.
How do you let a moderator ban players without OP?
Add the moderator as a subaccount and give them the "Moderator" preset. It covers power, console (read-only), actions on online players, the whitelist and "Bans" – the moderator can kick and ban from the panel but can't touch files or settings or grant OP. Subaccounts are in the "Subaccounts" tab of the server panel.
If the moderator should ban in game rather than in the panel, grant permissions with a plugin such as LuckPerms: lp user Alex permission set minecraft.command.ban true (and likewise minecraft.command.kick, minecraft.command.pardon). That's safer than OP, which unlocks every command.
How do you unban a player?
Type pardon name in the console, or pardon-ip address for an IP. In the panel, just click "Unban" next to the player in "Player bans" or in the player's menu in the "Players" tab.
pardontakes only a name (or selector), no reason.pardon-iptakes only an IP address – a player name won't work. If you don't remember the address, look it up withbanlist ipsor in the "IP bans" section.- Unbanning works immediately; no restart needed.
How do you ban an IP address, and when does it make sense?
ban-ip blocks every connection from an IP address, so the player can't come back on a fresh account from the same connection. Use it carefully: one IP is often shared by a whole household, a dorm or even thousands of mobile network users.
ban-ip 203.0.113.5– bans a specific address.ban-ip Steve– bans the address Steve is connected from; only works while Steve is online.- The server log shows a player's IP every time they join, e.g.
Steve[/203.0.113.5:51234] logged in with entity id …. Scroll back in "Console", or find older log files in thelogsfolder in the "Files" tab – more in Minecraft server logs and crash reports. - Vanilla
ban-ipcan't ban IPv6 addresses. Most players connect over IPv4, but if the command fails, an IPv6 address is the usual cause. - Many people have dynamic IPs – after a router restart the player gets a new address and the IP ban no longer applies. Treat an IP ban as an extra on top of an account ban, not a replacement.
Where are bans stored? banned-players.json and banned-ips.json
The server stores player bans in banned-players.json and IP bans in banned-ips.json, both in the server's main folder. They're JSON lists the server reads on startup and rewrites every time the bans change.
An example entry in banned-players.json:
[
{
"uuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
"name": "Steve",
"created": "2026-11-25 18:30:00 +0100",
"source": "Server",
"expires": "forever",
"reason": "Griefing"
}
]
| Field | Meaning |
|---|---|
uuid |
The account ID – bans work by UUID, so changing the name doesn't get around them |
name |
The player's name at the time of the ban |
created |
When the ban was issued, as yyyy-MM-dd HH:mm:ss zone |
source |
Who issued the ban (an operator's name or the console) |
expires |
forever for a permanent ban, or the date the ban ends |
reason |
The reason shown to the player |
banned-ips.json has the same fields, with ip instead of uuid and name.
You can open both files in the "Files" tab, but only edit them while the server is stopped: a running server keeps the list in memory and overwrites your edits on the next ban, and unlike the whitelist there's no command to reload bans from the file. For day-to-day work, commands or the "Player bans" section are easier. Editing by hand is useful for things like moving a ban list from another server – upload both files while the server is stopped, then start it.
If you put a date in expires in the same format as created, the server lifts the ban on its own after that time. A plugin makes timed bans much easier, though.
How do you temp ban a player?
Vanilla Minecraft has no temporary ban command – you need a plugin such as EssentialsX: tempban Steve 7d Griefing bans Steve for 7 days. Plugins run on Paper and Purpur, and you install them in the "Addons" tab.
EssentialsX adds these commands:
| Command | What it does |
|---|---|
tempban Steve 7d Griefing |
Bans for 7 days |
tempban Steve 1d12h Spam |
Bans for 1 day and 12 hours |
tempbanip Steve 3d Alt accounts |
IP ban for 3 days |
unban Steve / unbanip 203.0.113.5 |
Lifts the ban |
mute Steve 30m Spam |
Mutes the player in chat for 30 minutes |
kickall Restart |
Kicks every player except you |
Durations use short units: s – seconds, m – minutes, h – hours, d – days, w – weeks, mo – months, y – years, and you can combine them (2w3d). EssentialsX writes bans to the same files as vanilla, so a temp ban shows up in the panel's "Player bans" section along with its end date. Setting up EssentialsX is covered in How to install EssentialsX.
For a bigger server with a moderation team, a dedicated punishment plugin such as LibertyBans fits better: it keeps a player's punishment history, warnings, mutes and timed bans in its own database, which several servers in a network can share.
Modded servers (Fabric, Forge, NeoForge) can't run plugins – there you're left with the vanilla commands or moderation mods uploaded to the mods folder in the "Files" tab.
Banning on an offline-mode server: what to watch out for
On a server without account verification (online-mode=false), bans work by name, so a banned player can come back by typing a different name in their launcher. UUIDs on such a server are calculated from the name instead of coming from a Microsoft account.
What you can do:
- add a
ban-ipon top of the account ban (with the IP caveats above), - turn on the whitelist if the server is just for friends – then a new name can't join at all,
- install a login plugin (e.g. AuthMe Reloaded) – it won't stop new names, but it protects players' accounts from impersonation.
The most effective fix is the "Original accounts only" mode in "Configuration" – then a ban hits the player's Microsoft account. Details, including switching modes without players losing their inventories, are in Minecraft offline mode server.
FAQ
Can I ban a player who isn't on the server?
Yes. Type ban name in the console – on a server with account verification, Minecraft looks up the player's UUID from their account even if they've never joined. In the Spot.gg panel, ban them from the "Players" tab or with the "+" button in "Player bans". The exception is ban-ip with a name, which only works for online players.
How do I unban myself?
Type pardon your_name in the panel console, or click "Unban" next to your name in "Player bans". The server console has full permissions, so you don't need OP in game for this.
Why can a banned player still join?
Most often it's an offline-mode server and the player is joining under a different name, or the ban was added to banned-players.json by hand while the server was running and got overwritten. Check banlist in the console – if the player isn't listed, ban them again with the command.
Where can I see who was banned and why?
In "Console" → "Player bans" – each entry shows the reason and whether the ban is permanent or ends on a specific date. In the "Players" tab, the reason appears when you hover over the "Banned" badge. The full details (including who issued the ban) are in banned-players.json.
Does a kick leave any record?
A kick doesn't go on any list – it only appears in the server log. To keep track of repeat offenders, use a plugin with punishment history or note warnings in the ban reason.