AiModeration
A plugin/mod that watches chat, batches messages, and asks an AI model to flag toxicity, spam, advertising, and grief threats — then applies the suggested punishment automatically.
截图
介绍
AiModeration
A PaperMC plugin/Fabric Mod 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.
常见问题
AiModeration 支持哪些 Minecraft 版本?
AiModeration 支持 Minecraft Java 版 1.21–26.2,共 16 个版本,可用的加载器:Fabric / Paper / Purpur。下载时注意选择和你游戏版本一致的文件。
AiModeration 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Paper / Purpur,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分