Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
A PaperMC plugin that watches chat, batches messages, and asks an AI model to flag toxicity, spam, etc.
AiModeration
A PaperMC plugin that watches chat, batches messages, and asks an AI model to flag toxicity, spam, advertising, and grief threats — then applies the suggested punishment automatically.
Features
- Logs every chat message to
chat-msg.txtin the plugin's data folder - Every 20 lines, the batch is flushed and sent to an AI provider for review
- Supports OpenRouter and Groq as providers, with three model tiers (LIGHTWEIGHT, SMART, INTELLIGENT)
- Applies
warn/kick/banactions straight from the console - Writes a permanent audit trail to
chat-action.log - Optional Discord webhook integration — posts an embed for every action
/aimoderationcommand for reload, status, and manual batch sending
Requirements
- Java 21
- PaperMC 1.21.x
- An API key for OpenRouter or Groq
Building
mvn clean package
The compiled jar will be in target/AiModeration-1.0.0.jar.
Installation
- Drop the jar into your server's
plugins/folder. - Start the server once to generate
config.yml. - Fill in your
apiKey, chooseapiProviderandaiIntelligence. - Optionally enable the
discordwebhook section. - Restart or run
/aimoderation reload.
See GUIDE.md for full configuration and command details.
Documentation
- GUIDE.md — setup and usage guide
- SECURITY.md — reporting vulnerabilities
- CODE_OF_CONDUCT.md — community guidelines
- release-1.0.0.md — release notes
License
Provided as-is by CodeStuff.
Information
Category
Admin Tools
Published
August 20, 2026
License
MIT
0Downloads
0Stars
Pinned Versions
- R1.21–26.2
Pages
Members
1Owner