Skip to content
Getting Started

Getting Started

Overview

XBans is the moderation plugin built on XCore: sanctions, security and chat. It covers bans, mutes, warns and jails, and the tools around them: chat filtering, VPN detection, alt-account analysis and a staff toolkit.

Key highlights:

  • Unified sanctions — Ban, mute, warn, report, and jail with temporary or permanent durations
  • IP-level enforcement — IP bans, IP mutes, CIDR range blocking, and ISP blocking
  • Chat moderation — A word list that survives any way of disguising a word, plus a trained classifier for the phrasing a list cannot anticipate
  • Security suite — VPN and proxy blocking, client brand filtering, protocol version control, and alt-account detection
  • Staff tools — Freeze, watchlist, staff notes, warden notifications, and detailed player profiles
  • Point-and-click moderation — Fully customizable YAML-driven GUI screens, including a categorised /punish menu with sub-menus for sanction durations and reasons
  • Offline sanctions — Ban, mute, or warn players who have never connected; the sanction is enforced the moment they first join
  • Discord integration — Webhook notifications for all sanction events
  • Web dashboard — REST API module for the XCore web panel
  • Cross-server sync — All sanctions sync instantly across your network via XCore

Requirements

  • Paper 1.21.1+ (or Folia)
  • Java 21+
  • XCore 2.0+ installed as a plugin (XBans does not load on an older XCore: update XCore first)
  • Optional: an API key for the GeoIP provider (geoip.api-key), if you choose one other than the free default
  • Optional: Discord webhook URL for sanction notifications

Installation

  1. Install XCore in your server's plugins/ folder if you haven't already.
  2. Place XBans.jar in plugins/ too, like any plugin.
  3. Start the server. XBans generates its configuration files in plugins/XBans/.
  4. Edit config.yml to configure your moderation preferences, API keys, and feature toggles.
  5. Customize lang/<code>.yml to match your server's language and style.
  6. Restart the server or use /xbans reload to apply changes.

XBans creates its database tables automatically on first startup. If you're using MySQL/MariaDB through XCore, all sanctions are stored centrally and can be synced across servers.

Grant yourself xbans.admin to access all features, or assign granular permissions per command for your staff team.

Upgrading from 1.x

Since 2.0, XBans is a plugin of its own rather than an XCore addon. Its jar goes in plugins/ and the old one comes out of plugins/XCore/addons/; on its first start it moves its folder from plugins/XCore/addons/XBans/ to plugins/XBans/, with every setting, secrets.yml and wardens.yml included. The database does not change. Commands keep their names, and their namespaced forms become /xbans:ban, /xbans:mute and so on instead of /xcore:ban. On a network, update every server and the proxy together.

The steps, what to do on a network and how to roll back are on XCore's Upgrading to 2.0 page.

Proxy mode (Velocity / BungeeCord)

The same jar is also a proxy plugin. Drop XBans.jar in the proxy's own plugins/ folder and a banned player is turned away there, instead of being handed to a backend that kicks them a moment later — which also covers a backend that does not run XBans at all.

  1. Copy XBans.jar into the proxy's plugins/ folder, the same version as the one in plugins/ on each backend.
  2. Start the proxy once: it writes plugins/XBans-Proxy/proxy-config.yml and proxy-lang.yml.
  3. Fill in the database section with the same database your backends use.
  4. Restart the proxy. The pool and the JDBC driver are downloaded on that first start.
MechanicBehaviour
Source of truthThe same tables your Paper servers write. No second ban list, no synchronisation to set up
FreshnessNo cache: two indexed lookups per login, so a ban takes effect on the very next connection
ScopeOnly network-wide sanctions. A ban scoped to one server stays that server's business
Database unreachableThe connection is let through rather than the network being closed — the backend still checks
DatabasesMySQL/MariaDB or PostgreSQL
Kick screensproxy-lang.yml, in legacy colour codes (the one dialect both proxies understand)

A SQLite network cannot share its file with the proxy, which is a different process on a different machine. Leave the plugin off the proxy there — the backends already enforce every sanction.