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.
| Platform | Status |
|---|---|
| Paper 1.21.x | Primary target (built against Paper API 1.21.11). The join queue and DIALOG captcha need Paper 1.21.7+ |
| Purpur, Pufferfish | Expected to work through the Paper API; not separately tested |
| Folia | Not supported (the plugin disables itself) |
| Spigot / CraftBukkit | Not supported (Paper-only APIs) |
| BungeeCord | Supported (built against BungeeCord API 1.21-R0.3) |
| Waterfall | Supported through the BungeeCord API; end-of-life upstream |
| Velocity 3.x | Supported (built against Velocity API 3.4.0) |
| Velocity 4.x | Expected to work; not tested |
| Clients | The 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: trueConnection 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.
| Method | How it works | Notes |
|---|---|---|
| MAP (default) | Distorted digits on a map in a free hotbar slot; the player types the code in chat | Every client version; falls back to CHAT without a free slot; the map is always removed |
| DIALOG | Code-entry screen before the world loads | Paper 1.21.7+ and 1.21.6+ clients; an unanswered screen falls back to MAP |
| GUI | Click the named item in a menu | Stops simple bots |
| CHAT | Type the code shown in chat | Weakest, 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.
| Command | Permission | Purpose |
|---|---|---|
| /cab help | crystalantibot.command | Command list |
| /cab reload | crystalantibot.command.reload | Reload every file; blocks, verifications and statistics are kept |
| /cab status | crystalantibot.command.status | Attack mode, connections per second, peak, logins, verifications, blocks and throttles |
| /cab stats | crystalantibot.command.stats | Session and all-time statistics |
| /cab inspect <player> | crystalantibot.command.inspect | IP, verification state, last decision, risk score and every signal |
| /cab check <ip> | crystalantibot.command.check | Lists, blocks, throttles, recent counts and last connection for an IP |
| /cab whitelist add|remove|list [ip|cidr] | crystalantibot.command.whitelist | Trusted addresses; adding also lifts blocks in that range |
| /cab blacklist add|remove|list [ip|cidr] | crystalantibot.command.blacklist | Blocked addresses; ranges broader than /16 (IPv4) or /32 (IPv6) are refused |
| /cab alerts | crystalantibot.command.alerts | Toggle 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| Permission | Default | Purpose |
|---|---|---|
| crystalantibot.* | Operator | Everything except bypass |
| crystalantibot.command | Operator | Use /cab and /cab help |
| crystalantibot.command.<subcommand> | Operator | reload, status, stats, inspect, check, whitelist, blacklist or alerts |
| crystalantibot.alerts | Operator | Receive in-game alerts |
| crystalantibot.bypass | False | Skip 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.
| Signal | Points | Threshold | Weak |
|---|---|---|---|
| ip-rate: connections from one IP | 20 | 3 | No |
| subnet-burst: connections from one subnet | 15 | 8 | No |
| global-spike: attack mode is active | 10 | - | Yes |
| repeated-attempts: same name and IP | 10 | 4 | Yes |
| failed-verifications from the IP | 25 | 1 | No |
| similar-names within 30 seconds | 20 | 6 | No |
| concurrent-accounts online from the IP | 10 | 3 | Yes |
| concurrent-logins from the IP | 15 | 2 | No |
| name-pattern: bot-like or random names | 10 | - | Yes |
| timing-regularity: machine-like gaps | 20 | 4 gaps | No |
| new-ip-during-attack | 10 | - | Yes |
| no-server-ping before joining | 10 | - | Yes |
| unknown-hostname | 15 | - | 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.
| Option | Default | Meaning |
|---|---|---|
| attack-mode.trigger-connections | 30 | Connections per global window that start attack mode |
| attack-mode.duration-seconds | 60 | Attack mode ends this long after the last trigger |
| attack-mode.force-verification | true | Unverified players must verify during attack mode |
| queue.enabled · queue.mode | true · ALWAYS | Join queue; ALWAYS or ATTACK_ONLY |
| queue.interval-millis | 1000 | Time between two admissions |
| queue.max-size · max-wait-seconds | 100 · 300 | Queue limits |
| proxy.limbo-server | empty | Proxy server for verification and queue |
| checks.reconnect.mode | ATTACK_ONLY | OFF, ATTACK_ONLY or ALWAYS |
| checks.server-ping.mode | ATTACK_ONLY | Set OFF behind a proxy |
| checks.hostname.allowed | [] | Allowed connect addresses, for example play.example.com |
| exemptions.trust-identity-in-offline-mode | false | Trust operator and player exemptions behind an online-mode proxy |
| alerts.minimum-level | HIGH | Lowest level that sends a suspicious-connection alert |
| discord.enabled · discord.webhook-url | false · empty | Discord webhook alerts |
| discord.include-ips | false | Send full IPs; otherwise the last part is masked |
| limits.yml per-ip | 6 per 60 s | Connections per IP |
| limits.yml per-subnet | 20 per 60 s | Connections per subnet |
| limits.yml global | 40 per 10 s | Connections server-wide (unverified players) |
| limits.yml concurrent.max-accounts-per-ip | 5 (REJECT) | Accounts online per IP |
| limits.yml temporary-block.duration-minutes | 10 (max 1440) | Doubles for repeat offenders within 24 h |
| verification.yml method | MAP | MAP, DIALOG, GUI or CHAT |
| verification.yml timeout-seconds · max-attempts | 60 · 3 | Verification limits |
| verification.yml remember-hours | 72 | How long a passed verification is remembered |
| verification.yml verify-new-players | false | Always 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.