? DonutAntiCheat v1.0.0 — Paper 1.21.11
面向大型服务器的反作弊系统,采用黑底金字的 Donut SMP 主题风格。支持实时检测、管理员工具、Discord 集成以及基于权限等级的警报——所有功能均可配置,无任何硬编码内容。
?️ 检测项
⚔️ 战斗 - KillAura 非人般的攻击角度 / 每秒多目标命中
⚔️ 战斗 - Reach 超出合法战斗范围击中目标
? 移动 - Speed 水平速度超过合法上限
?️ 移动 - Flight 无合理原因的持续滞空
? 物品栏 - FastInventory 菜单/箱子中非人般的点击速度
⛏️ 世界 - Nuker 比物理上可能的更快破坏方块
? 世界 - FastPlace 比物理上可能的更快放置方块
每个检测项都有独立的开关、调优参数和独立的惩罚阶梯(⚠️ 警告 → ? 禁言 → ? 踢出 → ⛔ 封禁),每项均包含可配置的阈值、持续时间及理由。
? 命令
/donutac (别名: /dac, /anticheat) — 主管理面板
reload ? 实时重载配置,无需重启服务器
banhistory <player> ? 打开一个金质主题的 GUI 宝箱,显示玩家的完整封禁历史
unban <player> ✅ 解除活跃状态的封禁
stats <player> ? 显示在线玩家各项违规等级的实时数据
/sus ?️ — 实时可疑玩家监视列表
- 显示当前所有违规等级 > 0 的在线玩家
- 按严重程度排序(最严重优先),并根据严重程度分级进行颜色编码 ?→?→?
- 如果安装了 LuckPerms,会在玩家名称旁显示其 LuckPerms 权限组
/offend <玩家> <原因> ? — 手动违规记录
- 用于处理检查无法捕获的情况:聊天滥用、破坏报告、诈骗、不尊重行为、
规避封禁提示等。
- 原因预设可在 config.yml 中配置,但工作人员也可以输入自定义原因
- 向拥有 donutac.alerts 权限的工作人员广播,发送 Discord 嵌入消息,并永久保存到 offenses.yml
/offend history <玩家> ? — 调出所有针对该玩家的记录,按时间倒序排列
? Discord Webhook 集成
将 config.yml 中的 discord.enabled 设置为 true,填入你的 Webhook URL,即可获取以下内容的实时嵌入消息:
? 封禁 玩家、检查项、原因、持续时间、封禁 ID、执行封禁的管理员
? 踢出 玩家、检查项、违规等级
? 静音/警告 玩家、持续时间、原因
⚡ 实时警报 每当发生任何被标记的违规行为时立即推送,并附带 @提及
? 手动举报 通过 /offend 命令记录的所有内容
每种事件类型都有独立的开关,你可以将封禁消息路由到指定频道,并单独降低警报噪音。所有 Webhook 调用均完全异步运行——即使在高频率警报情况下也零 TPS 影响。
? LUCKPERMS 集成
- 软依赖 — 无论是否安装 LuckPerms,都能完美运行
- 如果检测到:在 /sus、/donutac 统计信息以及 Discord 嵌入消息中显示每个玩家的主要组别/等级
- 如果未检测到:所有功能仍然完全正常运行,只是不显示等级标签 —— 无错误,无崩溃
⚙️ 完全由配置文件驱动
所有设置均位于 config.yml 中——零硬编码值:
?️ 服务器名称与申诉链接(通过全局占位符 %server%/%appeal% 使用)
? 前缀、违规等级标签及颜色(从金色到红色的升级效果)
? 各项检查的阈值、灵敏度及惩罚阶梯
? Discord Webhook URL、机器人用户名/头像、各事件开关
? 违规行为预设理由
? 数据持久化
bans.yml - 完整的封禁历史记录,重启后保留,用于支持封禁历史 GUI
offenses.yml - 每次手动 /offend 操作的记录,永久留存
? DonutAntiCheat v1.0.0 — Paper 1.21.11
Big-server grade anticheat, themed gold-on-black for Donut SMP. Real-time detection,
staff tooling, Discord integration, and rank-aware alerts — all fully configurable,
nothing hardcoded.
?️ CHECKS
⚔️ Combat - KillAura Inhuman attack angles / multi-target hits per second
⚔️ Combat - Reach Hitting targets beyond legit combat range
? Movement - Speed Horizontal speed exceeding the legit cap
?️ Movement - Flight Sustained airtime with no legitimate cause
? Inventory - FastInventory Inhuman click speed in menus/chests
⛏️ World - Nuker Breaking blocks faster than physically possible
? World - FastPlace Placing blocks faster than physically possible
Every check has its own toggle, tuning values, and independent punishment ladder
(⚠️ WARN → ? MUTE → ? KICK → ⛔ BAN), each with configurable thresholds, durations,
and reasons.
? COMMANDS
/donutac (alias: /dac, /anticheat) — main admin hub
reload ? reload config live, no restart
banhistory <player> ? opens a gold-themed chest GUI of a player's full ban history
unban <player> ✅ pardon an active ban
stats <player> ? live per-check violation levels for an online player
/sus ?️ — live suspicious-players watchlist
- Shows every online player currently carrying a violation level > 0
- Sorted worst-first, color-coded ?→?→? by severity tier
- Displays each player's LuckPerms rank next to their name, if LuckPerms is installed
/offend <player> <reason> ? — manual offense log
- For things checks can't catch: chat abuse, griefing reports, scamming, disrespect,
ban-evasion tips, etc.
- Reason presets are configurable in config.yml, but staff can type a custom reason too
- Broadcasts to staff with donutac.alerts, fires a Discord embed, and saves permanently
to offenses.yml
/offend history <player> ? — pull up everything logged against a player, most recent first
? DISCORD WEBHOOK INTEGRATION
Flip discord.enabled: true in config.yml, drop in your webhook URL, and get real-time
embeds for:
? Bans player, check, reason, duration, ban ID, who banned them
? Kicks player, check, violation level
? Mutes/Warns player, duration, reason
⚡ Live Alerts every single flagged violation as it happens, with ping
? Manual Offenses everything logged via /offend
Every event type has its own on/off switch, so you can route bans to one channel and
dial down alert noise separately. All webhook calls run fully async — zero TPS impact,
even under heavy alert volume.
? LUCKPERMS INTEGRATION
- Soft dependency — works perfectly with or without LuckPerms installed
- If detected: shows each player's primary group/rank in /sus, /donutac stats, and
Discord embeds
- If not detected: everything still works exactly the same, just without the rank tag
— no errors, no crashes
⚙️ FULLY CONFIG-DRIVEN
Everything lives in config.yml — zero hardcoded values:
?️ Server name & appeal link (used via %server%/%appeal% placeholders everywhere)
? Prefix, violation-level labels & colors (gold → red escalation)
? Per-check thresholds, sensitivities, and punishment ladders
? Discord webhook URL, bot username/avatar, per-event toggles
? Offense reason presets
? DATA PERSISTENCE
bans.yml - full ban history, survives restarts, powers the ban-history GUI
offenses.yml - every manual /offend entry, permanent paper trail
评论 0
登录后参与评分
还没有评论,来抢沙发吧