---
title: "AdvancedBan Setup: Commands, Config & Permissions | ZCS"
description: "Install AdvancedBan, learn every punishment command and permission node, set up MySQL, layouts and warn actions, and fix common problems."
url: "https://www.zcraftstudios.com/blog/advancedban-setup-guide"
updated: "2026-11-04T03:54:52.505345+00:00"
source: "ZCraft Studios"
---

> Site index for AI agents: https://www.zcraftstudios.com/llms.txt (full reference: https://www.zcraftstudios.com/llms-full.txt). Every page is available as Markdown by adding `.md` to its URL or sending `Accept: text/markdown`.

1. [Home](https://www.zcraftstudios.com/)
2. [Blog](https://www.zcraftstudios.com/blog)
3. AdvancedBan Setup Guide: Commands, Config and Permissions

[ All posts](https://www.zcraftstudios.com/blog)

# AdvancedBan Setup Guide: Commands, Config and Permissions

ZCraft StudiosOct 3, 2026Updated Nov 4, 2026

Install AdvancedBan, learn every punishment command and permission node, set up MySQL, layouts and warn actions, and fix common problems.

## In this guide

- [What AdvancedBan does](#what-advancedban-does)
- [How to install AdvancedBan](#how-to-install-advancedban)
- [AdvancedBan commands](#advancedban-commands)
- [Permissions](#permissions)
- [Important config.yml settings](#important-configyml-settings)
- [Set up MySQL](#set-up-mysql)
- [Messages and layouts](#messages-and-layouts)
- [Use AdvancedBan on a proxy network](#use-advancedban-on-a-proxy-network)
- [Troubleshooting](#troubleshooting)
- [Frequently asked questions](#frequently-asked-questions)
- [Related reading](#related-reading)
- [More AdvancedBan guides](#more-advancedban-guides)
- [More guides](#more-guides)

**Quick answer:** AdvancedBan is a free punishment plugin for Minecraft servers. It handles bans, temporary bans, mutes, warnings, kicks and IP bans, keeps a history for every player, and runs on both Bukkit/Spigot servers and BungeeCord. To set it up, drop the jar in `plugins/`, restart, check `/advancedban`, then configure storage, permissions and messages.

_Looking for the other popular option? See [LiteBans vs AdvancedBan vs Essentials Punishments](https://www.zcraftstudios.com/blog/litebans-vs-advancedban-vs-essentials-punishments)._

![ZCraft AdvancedBans messages config preview](https://esrjajilhtjdleheettk.supabase.co/storage/v1/object/public/product-images/mtbtb2nl-image_2026-08-27_214411309.png)

_The ZCraft AdvancedBans Messages Config pack._

## What AdvancedBan does

| Feature          | Details                                                                        |
| ---------------- | ------------------------------------------------------------------------------ |
| Punishment types | Ban, tempban, IP ban, temp IP ban, mute, tempmute, warn, tempwarn, kick, notes |
| History          | /history shows past punishments for any player                                 |
| Storage          | Local embedded database by default, or MySQL                                   |
| Platforms        | Bukkit/Spigot/Paper and BungeeCord                                             |
| Customization    | config.yml, Messages.yml and layout files for reasons and durations            |
| Staff controls   | Per-command permissions, exempt nodes and maximum punishment lengths           |

### Original plugin and forks

The original AdvancedBan was written by Leoko and is on [AdvancedBanPunishment management with bans, mutes, warnings and player history.On SpigotMC ](https://www.spigotmc.org/resources/advancedban.8695/) and [GitHub](https://github.com/DevLeoko/AdvancedBan). Maintained forks exist, such as AdvancedBanX. Forks have their own support channels, so read the project page of the build you download, check its supported Minecraft versions and Java requirement, and ask for help in the right place.

## How to install AdvancedBan

1. **Back up** your server and any existing punishment data.
2. **Download** the build that matches your server software and Minecraft version.
3. **Stop the server** and place the jar in the `plugins/` folder of your Bukkit/Paper server, or your BungeeCord proxy's `plugins/` folder.
4. **Restart.** On BungeeCord, restart the proxy fully with `end`, not a reload.
5. **Run `/advancedban`** to confirm it loaded.
6. **Open the generated files** and make one change at a time, restarting after each.

See [Plugin Not Loading?](https://www.zcraftstudios.com/blog/minecraft-plugin-not-loading-fix) if the plugin shows red.

## AdvancedBan commands

Replace `[REASON | @LAYOUT]` with a written reason or a layout name. Add `-s` to make a punishment silent.

| Command                                                         | What it does                                                |
| --------------------------------------------------------------- | ----------------------------------------------------------- |
| /ban <player> \[reason\]                                        | Permanent ban                                               |
| /tempban <player> <time> \[reason\]                             | Temporary ban, with times like 1d, 2h, 30m or a time layout |
| /ipban <player or IP> \[reason\] (also /banip)                  | Ban an IP address                                           |
| /tempipban <player or IP> <time> \[reason\]                     | Temporary IP ban                                            |
| /mute <player> \[reason\], /tempmute <player> <time> \[reason\] | Mute                                                        |
| /warn <player> \[reason\], /tempwarn <player> <time> \[reason\] | Warning                                                     |
| /kick <player> \[reason\]                                       | Kick                                                        |
| /unban, /unmute <player>                                        | Remove a ban or mute                                        |
| /unwarn <id>, /unpunish <id>                                    | Remove a warning or any punishment by ID                    |
| /change-reason <id> <new reason>                                | Edit the reason for a punishment                            |
| /check <player>                                                 | Shows UUID, IP, country and ban, mute and warn status       |
| /banlist \[page\]                                               | All active punishments                                      |
| /history <player> \[page\]                                      | A player's full punishment history                          |
| /warns \[player\]                                               | Show warnings                                               |
| /note, /notes, /unnote                                          | Staff notes with no effect on the player (newer versions)   |
| /advancedban reload                                             | Reload messages and some settings                           |
| /advancedban help, /systemprefs                                 | Help and system information                                 |

Time units use `mo`, `d`, `h`, `m` and `s`. The exact command list depends on the build, so run `/advancedban help` on your server.

## Permissions

Most nodes follow the pattern `ab.<punishment>.<type>`.

| Permission                                  | Allows                        |
| ------------------------------------------- | ----------------------------- |
| ab.ban.perma                                | /ban                          |
| ab.ban.temp                                 | /tempban                      |
| ab.ban.undo                                 | /unban                        |
| ab.ban.exempt                               | Cannot be banned              |
| ab.ban.notify                               | Sees ban notifications        |
| ab.mute.notify, ab.warn.perma, ab.warn.temp | Mute alerts, /warn, /tempwarn |
| ab.kick.use                                 | /kick                         |
| ab.check                                    | /check                        |
| ab.history                                  | /history                      |
| ab.banlist                                  | /banlist                      |
| ab.reload                                   | /advancedban reload           |

Example with LuckPerms:

```
/lp group moderator permission set ab.kick.use true
/lp group moderator permission set ab.warn.perma true
/lp group moderator permission set ab.ban.temp true
/lp group admin permission set ab.ban.perma true
/lp group admin permission set ab.ban.exempt true
```

Give junior staff temporary punishments only, and keep permanent bans for senior staff. See [Minecraft Staff Training Checklist](https://www.zcraftstudios.com/blog/minecraft-server-staff-onboarding) and [Designing a Rank and Permission System](https://www.zcraftstudios.com/blog/minecraft-server-rank-permission-system).

**On BungeeCord**, permissions must be defined in the proxy's config or by a proxy permissions plugin, and some setups lack wildcard support. AdvancedBan has an option to enable `ab.all` style nodes for that reason. Check the comments in `config.yml`.

### Limit how long staff can punish

The `TempPerms` section of `config.yml` maps IDs to durations in seconds. A node such as `ab.tempban.dur.1` then limits that staff member to the duration set for ID 1\. Use it so a new moderator cannot hand out a year-long ban.

## Important config.yml settings

| Setting                  | Why it matters                                                           |
| ------------------------ | ------------------------------------------------------------------------ |
| UseMySQL                 | false stores data locally. Set true for a network.                       |
| MySQL connection options | Host, port, database, user and password, in config.yml in newer versions |
| LockdownOnError          | Blocks logins if the database fails, so banned players cannot slip in    |
| MuteCommands             | Commands blocked for muted players, such as me and say                   |
| WarnActions              | Automatic actions at warning counts, such as a kick at 3 warns           |
| TimeDiff                 | Fixes time offset if your server clock is wrong                          |
| UUID fetcher settings    | Leave dynamic on unless you have problems                                |

Example warning escalation, using the format in the default config:

```
WarnActions:
  3: "kick %PLAYER% &cYou have been warned 3 times"
  5: "tempban %PLAYER% 1d Too many warnings"
```

Variables available include `%PLAYER%`, `%REASON%` and `%COUNT%`. Use the sample in your generated config as the template, not this snippet.

## Set up MySQL

1. Create a database and a dedicated user with access only to that database.
2. Set `UseMySQL: true` and enter the connection details.
3. Restart and check the console for connection errors. If the database refuses connections, check the MySQL version notes on the plugin page.
4. Test by issuing a punishment and confirming rows appear.

For networks, point every instance at the same database. See [SQLite vs MySQL for Minecraft Plugins](https://www.zcraftstudios.com/blog/minecraft-server-plugin-database-sqlite-vs-mysql) and [Sharing Player Data With MySQL](https://www.zcraftstudios.com/blog/mysql-cross-server-player-data).

## Messages and layouts

`Messages.yml` holds every message players and staff see. The layouts file defines **message layouts** (preset reasons that expand to a styled ban screen) and **time layouts** (durations that grow with repeat offenses). Staff then use `/ban Steve @cheating` or a time layout instead of typing text each time, which keeps punishments consistent.

Add a clear appeal link and a case ID to ban screens. See [Ban Appeal Process](https://www.zcraftstudios.com/blog/minecraft-server-ban-appeal-process). If you do not want to write the full text, the ZCraft **[AdvancedBans Messages Config](https://www.zcraftstudios.com/products/advancedbans-messages-config)** ships styled ban, mute, warn and kick screens in English and Spanish. The pack ships message and template files built for AdvancedBan. Follow its README to install it.

## Use AdvancedBan on a proxy network

- Install the BungeeCord build on the proxy so punishments apply to the whole network.
- Use one MySQL database so history is shared.
- Test from every entry route. A player banned on the proxy should not be able to join a backend directly, so lock backends behind the proxy. See [Firewall Hardening](https://www.zcraftstudios.com/blog/minecraft-server-firewall-hardening) and [Velocity Modern Forwarding Setup](https://www.zcraftstudios.com/blog/velocity-modern-forwarding-setup-checklist).
- Check whether the build you use supports Velocity before choosing it for a Velocity network.

## Troubleshooting

| Problem                         | Likely fix                                                                                                                     |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Commands say no permission      | Define ab.\* nodes in the right permission plugin, and on BungeeCord in the proxy                                              |
| History is empty                | Check storage mode and database errors in the log                                                                              |
| Player joins after being banned | Banned on a backend only, or a different UUID mode. See [Authentication Models](https://www.zcraftstudios.com/blog/minecraft-server-authentication-methods) |
| MySQL will not connect          | Wrong credentials, or an unsupported MySQL version for the build                                                               |
| Time shows wrongly              | Adjust TimeDiff                                                                                                                |
| Messages still show defaults    | Run /advancedban reload and check YAML syntax. See [Config Review](https://www.zcraftstudios.com/blog/minecraft-plugin-config-review-checklist)             |

## Frequently asked questions

**Is AdvancedBan free?** Yes, the original plugin is free and open source on GitHub. Forks have their own terms.

**Does AdvancedBan work on the newest Minecraft version?** Check the release notes of the exact build. Modern Paper versions need a recent Java. See [Start a Minecraft Server](https://www.zcraftstudios.com/blog/start-minecraft-server) for Java requirements.

**What is the difference between /ban and /ipban?** `/ban` blocks the account. `/ipban` blocks the IP address, which can also affect other players on that network, so use it carefully.

**How do I see who banned someone?** Use `/check <player>` or `/history <player>`. The record shows the staff member who issued each punishment.

**AdvancedBan or LiteBans?** LiteBans is premium and has a web interface. AdvancedBan is free. See the [comparison](https://www.zcraftstudios.com/blog/litebans-vs-advancedban-vs-essentials-punishments) and the [LiteBans setup guide](https://www.zcraftstudios.com/blog/litebans-setup-guide).

## Related reading

- [Best Minecraft Anti-Cheat Plugins](https://www.zcraftstudios.com/blog/minecraft-anticheat-plugins-compared)
- [Dealing With Cheaters on a Minecraft Server](https://www.zcraftstudios.com/blog/minecraft-server-cheaters)
- [Official AdvancedBan repository](https://github.com/DevLeoko/AdvancedBan)

## More AdvancedBan guides

- [AdvancedBan Commands and Permissions: Cheat Sheet](https://www.zcraftstudios.com/blog/advancedban-commands-permissions-cheat-sheet)
- [AdvancedBan Warn Actions, MuteCommands and Punishment Ladder](https://www.zcraftstudios.com/blog/advancedban-warn-actions-mutecommands-ladder)
- [AdvancedBan on a Network: MySQL, BungeeCord and Velocity](https://www.zcraftstudios.com/blog/advancedban-network-mysql-bungeecord-velocity-setup)
- [AdvancedBan Not Working? Permissions, MySQL and Command Fixes](https://www.zcraftstudios.com/blog/advancedban-not-working-fixes)
- [AdvancedBan Alternatives: AdvancedBanX, LibertyBans, LiteBans](https://www.zcraftstudios.com/blog/advancedban-alternatives-advancedbanx-libertybans-litebans)

## More guides

- [Minecraft Join Spam and Bot Attacks: Defense Checklist](https://www.zcraftstudios.com/blog/minecraft-server-antibot-join-spam-defense)
- [Setting Up AuthMe for Offline-Mode Authentication](https://www.zcraftstudios.com/blog/authme-offline-mode-authentication-setup)
- [CoreProtect Rollback Guide: Commands and Safe Restores](https://www.zcraftstudios.com/blog/coreprotect-rollback-commands-guide)
- [In-Game Report System Setup for Minecraft Servers](https://www.zcraftstudios.com/blog/minecraft-server-report-system-setup)
- [Minecraft Server Staff Roles: Responsibilities Explained](https://www.zcraftstudios.com/blog/minecraft-staff-roles)

## Continue reading

- [AdvancedBan Commands and Permissions: Cheat Sheet](https://www.zcraftstudios.com/blog/advancedban-commands-permissions-cheat-sheet)
- [zMenu Commands and Permissions: /zm Reference](https://www.zcraftstudios.com/blog/zmenu-commands-permissions-reference)
- [EternalTags Commands, Placeholders and Permissions](https://www.zcraftstudios.com/blog/eternaltags-commands-placeholders-permissions)
- [AdvancedBan Not Working? Permissions, MySQL and Command Fixes](https://www.zcraftstudios.com/blog/advancedban-not-working-fixes)

[ Previous guide New Player Onboarding: Build a Server Tutorial Flow](https://www.zcraftstudios.com/blog/new-player-onboarding-tutorial-setup)[ Next guide mcMMO Setup: RPG Skills, Levels and Balance](https://www.zcraftstudios.com/blog/mcmmo-rpg-skills-setup)

<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","alternateName":["ZCS","ZCraft","ZCraftStudios"],"logo":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192},"image":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192},"url":"https://www.zcraftstudios.com","description":"ZCraft Studios (ZCS) creates Minecraft plugins, server configs and tools. Browse resources, compatibility details and setup guides.","email":"Support@zcraftstudios.com","slogan":"Minecraft resources, configurations and custom server development.","knowsAbout":["Minecraft plugins","Minecraft server configuration","Java plugin development","Minecraft server optimization"],"sameAs":["https://dsc.gg/zcraftstudios","https://x.com/ZCraftNetwork","https://www.youtube.com/@zcraft_studios","https://www.instagram.com/ZCraftStudios"],"contactPoint":[{"@type":"ContactPoint","contactType":"customer support","email":"Support@zcraftstudios.com","availableLanguage":["English"],"areaServed":"Worldwide"}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","@id":"https://www.zcraftstudios.com/#website","url":"https://www.zcraftstudios.com","name":"ZCraft Studios","alternateName":["ZCS","ZCraft"],"description":"ZCraft Studios (ZCS) creates Minecraft plugins, server configs and tools. Browse resources, compatibility details and setup guides.","inLanguage":"en","publisher":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com"}}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://www.zcraftstudios.com/blog/advancedban-setup-guide#article","headline":"AdvancedBan Setup Guide: Commands, Config and Permissions","url":"https://www.zcraftstudios.com/blog/advancedban-setup-guide","mainEntityOfPage":"https://www.zcraftstudios.com/blog/advancedban-setup-guide","isPartOf":{"@type":"WebSite","@id":"https://www.zcraftstudios.com/#website","name":"ZCraft Studios","url":"https://www.zcraftstudios.com"},"speakable":{"@type":"SpeakableSpecification","cssSelector":["h1","main"]},"description":"Install AdvancedBan, learn every punishment command and permission node, set up MySQL, layouts and warn actions, and fix common problems.","datePublished":"2026-10-03T17:20:00+00:00","dateModified":"2026-11-04T03:54:52.505345+00:00","author":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com/about"},"publisher":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com","logo":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192}},"inLanguage":"en","image":"https://www.zcraftstudios.com/api/og/blog/advancedban-setup-guide?v=155s1r"}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zcraftstudios.com/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://www.zcraftstudios.com/blog"},{"@type":"ListItem","position":3,"name":"AdvancedBan Setup Guide: Commands, Config and Permissions","item":"https://www.zcraftstudios.com/blog/advancedban-setup-guide"}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Is AdvancedBan free?","acceptedAnswer":{"@type":"Answer","text":"Yes, the original plugin is free and open source on GitHub. Forks have their own terms."}},{"@type":"Question","name":"Does AdvancedBan work on the newest Minecraft version?","acceptedAnswer":{"@type":"Answer","text":"Check the release notes of the exact build. Modern Paper versions need a recent Java. See Start a Minecraft Server for Java requirements."}},{"@type":"Question","name":"What is the difference between /ban and /ipban?","acceptedAnswer":{"@type":"Answer","text":"/ban blocks the account. /ipban blocks the IP address, which can also affect other players on that network, so use it carefully."}},{"@type":"Question","name":"How do I see who banned someone?","acceptedAnswer":{"@type":"Answer","text":"Use /check \u003cplayer> or /history \u003cplayer>. The record shows the staff member who issued each punishment."}},{"@type":"Question","name":"AdvancedBan or LiteBans?","acceptedAnswer":{"@type":"Answer","text":"LiteBans is premium and has a web interface. AdvancedBan is free. See the comparison and the LiteBans setup guide."}}]}</script>
