AusWeis: Stopping Bot Armies with Cloudflare Turnstile on Your Minecraft Server
Running a public Minecraft server is a thrill until the bots arrive. They flood the player list, spam chat, and sometimes crash your world. Traditional CAPTCHAs feel like a chore for real players, and many automated scripts can bypass them. AusWeis offers a modern answer: a lightweight Bukkit/Paper plugin that integrates Cloudflare Turnstile to verify humans before they ever step foot in your lobby. It kicks players once with a verification URL, checks their status against your backend API, and only then allows them to join. The result is a frictionless shield that keeps your community genuine without annoying puzzles.
How AusWeis Guards Your Server
The plugin operates on a simple, stateless workflow. When a player attempts to connect, AusWeis instantly queries your own web API to see if that username has already passed the Turnstile challenge. If the answer is yes, the player joins normally. If not, the plugin boots them with a custom kick message containing a unique verification link. The player opens that link in a browser, completes the invisible Turnstile widget on your site, and then reconnects. The next login attempt triggers another API check, which now returns “verified,” and the player enters without a second thought. No local cache means the verification status is always up-to-date, and you never risk a bot slipping through on stale data.
Features That Make AusWeis Stand Out
- Instant human check: Every connection triggers a real-time API call to your backend, ensuring no bot can reuse an old session.
- Bypass for trusted players: Grant the
ausweis.bypasspermission to admins, VIPs, or yourself so they never see the verification screen. - Fully customizable messages: Kick titles and bodies support Minecraft colour codes, multi-line text, and placeholders like
{player}. - Multi-language ready: Built-in English and Chinese translations, with a simple YAML system for adding your own language files.
- Live reload: The
/ausweis reloadcommand lets you tweak configs without restarting the server. - Wide version support: Works on Spigot and Paper from Minecraft 1.8 up to the latest releases, tested on 1.12.2, 1.16.5, and 1.21+.
Setting Up AusWeis on Your Server
Getting started is straightforward. First, grab the latest AusWeis JAR from the official Releases page on GitHub. Drop it into your server’s plugins/ folder and restart the server. A full restart is recommended over /reload to avoid classloader issues, but the plugin is robust enough to handle either. Once the server boots, AusWeis generates a default config.yml and a lang/ folder with the English and Chinese message files. Open the config and set your api-url and verify-url to point to your own web backend. Then run /ausweis reload to apply the changes. If you manage multiple servers or frequently swap modpacks, the foxygame.net launcher can streamline the process by letting you install and update plugins like AusWeis directly from its built-in menu, saving you from hunting down JARs manually.
Understanding the Configuration
The config.yml is deliberately minimal so you can focus on what matters. The language key picks the messages file (e.g., en for English). The api-url is the endpoint your server will call with a ?user=PlayerName query parameter; it must return a JSON object with a boolean verified field. The verify-url is the page players see in the kick message, where you host the Turnstile widget. You can also adjust the HTTP timeout (in milliseconds) and enable debug logging if you need to trace requests. Every change takes effect immediately after a reload, making it easy to experiment with different verification flows.
Commands and Permissions at a Glance
AusWeis keeps administration simple with just one command and two permissions:
Commands
- /ausweis reload – Reloads the plugin configuration. Requires
ausweis.reload. - /ausw reload – A shorter alias for the same action.
Permissions
- ausweis.reload – Allows reloading the config. Defaults to operators.
- ausweis.bypass – Skips verification entirely. Defaults to false; grant it to yourself or staff.
Building Your Own API Backend
For the plugin to work, you need two web endpoints. The first is a status check: a GET request to your api-url with the player name. It should return JSON like {"verified": true, "user": "Steve", "timestamp": 1709123456.789}. The second is the verification page itself, where you embed the Cloudflare Turnstile widget. After a successful challenge, your backend must mark that player as verified in a database or memory store so that the next API call returns true. A reference implementation is open-sourced by @ChineseLiyao on GitHub under the name AusWeis; you can deploy it directly or use it as a template for your own stack.
Adding Your Own Language
Localization is a breeze. Create a new file in plugins/AusWeis/lang/ named messages_<code>.yml (for example, messages_fr.yml for French). Copy the keys from the built-in English file—kick-title and kick-message—and translate the values. Then set language: "fr" in config.yml and reload. The plugin will instantly pick up your custom strings, complete with Minecraft colour codes.
Compiling from Source
If you prefer to inspect the code or make modifications, clone the repository from github.com/Nskawa/AusWeisPlugin, navigate into the directory, and run mvn clean package. The compiled JAR will appear in the target/ folder. The project is licensed under MIT, so you’re free to fork and adapt it for your own server network.
Conclusion: A Smarter Way to Verify Players
AusWeis turns the tedious task of bot prevention into a background process that respects your players’ time. By leveraging Cloudflare Turnstile, it eliminates the need for intrusive in-game CAPTCHAs while still slamming the door on automated attacks. The plugin’s lightweight design, real-time API checks, and simple configuration make it a perfect fit for servers of any size. Whether you run a small survival world or a large minigame hub, adding AusWeis means you can focus on building, crafting, and community instead of chasing fake accounts. Give it a try, and watch your player list fill up with real people again.