Documentation

CrystalAntiBot — Bot Attack Protection

Bot protection for Paper, BungeeCord, Waterfall and Velocity with rate limits, risk scoring, captchas and a join queue.

This is a preserved product reference. Check the current listing for release-specific dependencies and support. Ask for help.

Reference information

Guide version: v1.0.0 Supported platforms: Paper 1.21.x · BungeeCord / Waterfall · Velocity 3.x Guide updated: November 2026

Overview

CrystalAntiBot protects Minecraft servers and networks from bot join attacks. One JAR runs on Paper (and forks), BungeeCord, Waterfall and Velocity; it detects the platform and starts the matching entrypoint. Every login is analysed before the player enters the world. • Limits: sliding-window rate limits per IP, per subnet and server-wide • Scoring: an explained risk score built from multiple signals • Responses: allow, monitor, throttle, verify, temporarily block or reject • Captcha: a map image captcha, a dialog screen before the world loads, a GUI or a chat challenge • Join queue: lets players in one at a time during floods, with their position on screen • Extra checks: reconnect check, server-list ping check and hostname check • Alerts in-game, in the console and through a Discord webhook Nothing is ever banned permanently. Important limitation CrystalAntiBot works at application level and only sees connections that reach the Minecraft server. It cannot stop volumetric (network-layer) DDoS attacks or traffic that saturates your connection; use upstream DDoS protection from your host for that. A risk score is a heuristic, not proof that a connection is a bot.

Requirements & Compatibility

Java 21 or newer is required on every platform. No other plugins are needed.
PlatformStatus
Paper 1.21.xPrimary target (built against Paper API 1.21.11). The join queue and DIALOG captcha need Paper 1.21.7+
Purpur, PufferfishExpected to work through the Paper API; not separately tested
FoliaNot supported (the plugin disables itself)
Spigot / CraftBukkitNot supported (Paper-only APIs)
BungeeCordSupported (built against BungeeCord API 1.21-R0.3)
WaterfallSupported through the BungeeCord API; end-of-life upstream
Velocity 3.xSupported (built against Velocity API 3.4.0)
Velocity 4.xExpected to work; not tested
ClientsThe DIALOG captcha and queue screen need 1.21.6+ clients; the MAP captcha works with every client

Installation

Paper, Purpur or Pufferfish 1. Put CrystalAntiBot.jar in the server plugins/ folder. 2. Start the server; plugins/CrystalAntiBot/ is created. 3. Adjust the files and run /cab reload. BungeeCord or Waterfall 1. Put the same JAR in the proxy plugins/ folder. 2. Start the proxy; plugins/CrystalAntiBot/ is created. Velocity 1. Put the same JAR in the proxy plugins/ folder. 2. Start the proxy; plugins/crystalantibot/ is created (Velocity uses the plugin id). Networks (proxy + backends) Install on the proxy to protect the whole network. For verification and the queue, set proxy.limbo-server to a small waiting server such as NanoLimbo or a void-world Paper server, and keep it out of the try list in velocity.toml. Optionally run the JAR on backends too for the MAP captcha: set exemptions.trust-identity-in-offline-mode: true, checks.server-ping.mode: OFF and queue.enabled: false there, use modern forwarding and firewall the backend ports. Your files are never overwritten. Missing files are created; on Paper new keys are added after a backup in data/; invalid values fall back to defaults with a warning, and invalid YAML disables the plugin with a clear error.
plugins/CrystalAntiBot/
├── config.yml         general, attack mode, queue, exemptions, alerts, Discord
├── detection.yml      risk scoring: thresholds, actions, signals
├── limits.yml         rate limits, throttling, temporary blocks
├── verification.yml   verification method and restrictions
├── messages.yml       all texts (MiniMessage)
├── whitelist.yml      trusted IPs / CIDR ranges
├── blacklist.yml      blocked IPs / CIDR ranges
├── logs/connections-YYYY-MM-DD.log
└── data/              state.dat, stats.properties, *.bak backups

# velocity.toml
[servers]
lobby = "127.0.0.1:30066"
limbo = "127.0.0.1:30067"
try = ["lobby"]

# plugins/crystalantibot/config.yml
proxy:
  limbo-server: "limbo"
  title-prompt: true

Connection Pipeline

Checks run before the player exists in the world (AsyncPlayerPreLoginEvent on Paper): 1. Blacklist: reject. 2. Exemptions: whitelisted IPs and ranges, trusted players and operators are allowed without checks. 3. Active temporary block: reject with the remaining time. 4. Active throttle: reject with the wait time; repeated attempts escalate to a temporary block. 5. Hard limits: connections per IP, per subnet (IPv4 /24, IPv6 /64) and globally, simultaneous logins, accounts per IP and failed verifications. 6. Hostname check, if configured. 7. Reconnect check (default during attack mode): the first connection of a new name and IP is asked to reconnect within 2 to 120 seconds. 8. Risk scoring: the action configured for the resulting level in detection.yml. 9. Attack mode: during a connection spike, unverified players must verify. On Paper 1.21.7+ the DIALOG captcha and the join queue then run in the configuration phase, before any chunks are sent. Finally the MAP, GUI or CHAT verification runs in the world if the player still has to verify. The reasons for every decision are logged and shown by /cab inspect and /cab check.

Verification & Captcha

Players who must verify cannot move, chat, use commands, interact, drop or pick up items, or take damage. Wrong answers and timeouts kick the player and count as failed verifications; too many failures cause a temporary block. Leaving during verification is counted but never causes a block. Players who pass are remembered for remember-hours, and shared networks such as schools or public Wi-Fi get higher limits once a player from that IP has verified. On a proxy, players who must verify are sent to the limbo server and type /verify <code>, shown in chat, as a title and in the action bar. This is weaker than the MAP captcha because bots can read chat, so for the strongest setup also run the plugin on backends with method: MAP. Without a limbo server, VERIFY decisions use verify-fallback (default THROTTLE). Bots built specifically to solve captchas can still solve them: the captcha raises the cost of an attack rather than making bots impossible.
MethodHow it worksNotes
MAP (default)Distorted digits on a map in a free hotbar slot; the player types the code in chatEvery client version; falls back to CHAT without a free slot; the map is always removed
DIALOGCode-entry screen before the world loadsPaper 1.21.7+ and 1.21.6+ clients; an unanswered screen falls back to MAP
GUIClick the named item in a menuStops simple bots
CHATType the code shown in chatWeakest, because bots can read chat

Join Queue

With the queue enabled, players are admitted one per queue.interval-millis. With the default 1000 ms, 50 players joining at once enter one per second, so the last waits about 50 seconds. Waiting players see their position (for example #3 of 12), the estimated wait and a Leave queue button. Recently verified players use a priority lane; whitelisted IPs, trusted players and operators skip the queue. Players beyond queue.max-size are refused and players waiting longer than queue.max-wait-seconds are disconnected. On a proxy, waiting players are held on proxy.limbo-server with their position in the action bar and are sent to their original server when it is their turn; /server is blocked while they wait. Some Velocity versions do not display configuration-phase screens: on Paper behind such a proxy set queue.show-dialog: false, or better, run the queue on the proxy.

Commands

All commands use /cab (aliases /crystalantibot and /antibot). /verify <code> exists on proxies only and needs no permission.
CommandPermissionPurpose
/cab helpcrystalantibot.commandCommand list
/cab reloadcrystalantibot.command.reloadReload every file; blocks, verifications and statistics are kept
/cab statuscrystalantibot.command.statusAttack mode, connections per second, peak, logins, verifications, blocks and throttles
/cab statscrystalantibot.command.statsSession and all-time statistics
/cab inspect <player>crystalantibot.command.inspectIP, verification state, last decision, risk score and every signal
/cab check <ip>crystalantibot.command.checkLists, blocks, throttles, recent counts and last connection for an IP
/cab whitelist add|remove|list [ip|cidr]crystalantibot.command.whitelistTrusted addresses; adding also lifts blocks in that range
/cab blacklist add|remove|list [ip|cidr]crystalantibot.command.blacklistBlocked addresses; ranges broader than /16 (IPv4) or /32 (IPv6) are refused
/cab alertscrystalantibot.command.alertsToggle your in-game alerts
/verify <code>None (proxies only)Pass verification on the limbo server

Permissions

BungeeCord and Velocity have no operator status: grant permissions with your proxy permission plugin, for example LuckPerms on Velocity.
/lpv group admin permission set crystalantibot.* true
PermissionDefaultPurpose
crystalantibot.*OperatorEverything except bypass
crystalantibot.commandOperatorUse /cab and /cab help
crystalantibot.command.<subcommand>Operatorreload, status, stats, inspect, check, whitelist, blacklist or alerts
crystalantibot.alertsOperatorReceive in-game alerts
crystalantibot.bypassFalseSkip verification after joining (also on proxies)

Risk Signals

The points of every signal that fires are added into a score. By default MEDIUM starts at 25, HIGH at 50 and CRITICAL at 80, mapped to ALLOW, MONITOR, VERIFY and TEMPORARILY_BLOCK. With only weak signals the level never goes above MEDIUM, and HIGH or CRITICAL need at least two signals, so one weak signal can never condemn a player. A name and IP that passed verification get a score reduction of 30.
SignalPointsThresholdWeak
ip-rate: connections from one IP203No
subnet-burst: connections from one subnet158No
global-spike: attack mode is active10-Yes
repeated-attempts: same name and IP104Yes
failed-verifications from the IP251No
similar-names within 30 seconds206No
concurrent-accounts online from the IP103Yes
concurrent-logins from the IP152No
name-pattern: bot-like or random names10-Yes
timing-regularity: machine-like gaps204 gapsNo
new-ip-during-attack10-Yes
no-server-ping before joining10-Yes
unknown-hostname15-No

Configuration

Every option has a safe default and is applied with /cab reload. A limit of 0 disables that limit. Messages use MiniMessage, and <prefix> inserts the prefix.
OptionDefaultMeaning
attack-mode.trigger-connections30Connections per global window that start attack mode
attack-mode.duration-seconds60Attack mode ends this long after the last trigger
attack-mode.force-verificationtrueUnverified players must verify during attack mode
queue.enabled · queue.modetrue · ALWAYSJoin queue; ALWAYS or ATTACK_ONLY
queue.interval-millis1000Time between two admissions
queue.max-size · max-wait-seconds100 · 300Queue limits
proxy.limbo-serveremptyProxy server for verification and queue
checks.reconnect.modeATTACK_ONLYOFF, ATTACK_ONLY or ALWAYS
checks.server-ping.modeATTACK_ONLYSet OFF behind a proxy
checks.hostname.allowed[]Allowed connect addresses, for example play.example.com
exemptions.trust-identity-in-offline-modefalseTrust operator and player exemptions behind an online-mode proxy
alerts.minimum-levelHIGHLowest level that sends a suspicious-connection alert
discord.enabled · discord.webhook-urlfalse · emptyDiscord webhook alerts
discord.include-ipsfalseSend full IPs; otherwise the last part is masked
limits.yml per-ip6 per 60 sConnections per IP
limits.yml per-subnet20 per 60 sConnections per subnet
limits.yml global40 per 10 sConnections server-wide (unverified players)
limits.yml concurrent.max-accounts-per-ip5 (REJECT)Accounts online per IP
limits.yml temporary-block.duration-minutes10 (max 1440)Doubles for repeat offenders within 24 h
verification.yml methodMAPMAP, DIALOG, GUI or CHAT
verification.yml timeout-seconds · max-attempts60 · 3Verification limits
verification.yml remember-hours72How long a passed verification is remembered
verification.yml verify-new-playersfalseAlways verify new players

Security & Performance

• Login checks never do I/O; logging, Discord and saving run on their own background threads. • Every per-IP structure is a size-limited LRU cache (general.max-tracked-entries), so floods of random IPs cannot exhaust memory. • IP and CIDR input is parsed as literals only; host names are never resolved. • Discord messages disable all mentions, so player names cannot ping @everyone. • In offline mode, operator and trusted-player exemptions are ignored unless trust-identity-in-offline-mode is enabled behind an online-mode proxy with forwarding. • Behind a proxy, configure forwarding correctly, otherwise every player shares the proxy IP.

Support

For help, join the official Crystal Developments Discord: https://discord.gg/j6rHpCSKeJ. Include the CrystalAntiBot version, the platform and its version, the Java version, the output of /cab status, relevant lines from logs/connections-YYYY-MM-DD.log and your configuration with webhook URLs removed.