ModMC AntiCheat
保护服务器(仍在开发中)
ModMC AntiCheat 是一款高性能、兼容多版本的反作弊解决方案,旨在以极小的服务器性能损耗来保障你的社区安全。它基于 PacketEvents API 从头构建,通过检查网络中发送的数据包来检测现代作弊客户端。ModMC AntiCheat 专注于性能优化和数学计算,力求在快速检测恶意行为与完全保留玩家体验之间提供最佳平衡。它支持从 1.8 到 1.21.3 的所有 Spigot、Paper 和 Purpur 版本。
为什么要使用它?
无依赖项
: ModMC AntiCheat 已将所有依赖项打包(shaded),安装时无需包含任何额外的 JAR 文件。
Discord 集成
: 警报和处罚记录会发送到你的 Discord Webhook,作为管理团队的操作日志。
游戏内监控
: 输入
/modac monitor
即可在聊天栏查看违规标志的实时流。
内置异步 SQLite 日志记录
: 想要几天后查询用户的历史记录?没问题。所有数据库查询均在异步运行,以免影响主服务器线程。
高度可定制
: 想改为封禁而不是踢出?需要调整某些阈值?只需编辑配置文件即可实现。
它包含哪些检测项目?
目前 ModMC AntiCheat 包含 16 个经过调优和优化的检测项目,以应对最常见的客户端作弊形式。
移动类
Speed
: 检测各种移动速度作弊,包括兔子跳、速度药水以及冰面疾跑。
Fly
: 测量玩家滞空或异常悬停的时间,以检测数据包飞行漏洞。
NoFall
: 防止通过伪装处于地面状态来规避坠落伤害。
Jesus
: 检查碰撞箱与附近液体的关系,以检测水上行走和熔岩行走。
ElytraFly
: 防止鞘翅无限飞行和使用烟花过度加速。
NoSlow
: 检测在进食、格挡或瞄准时试图保持疾跑速度的行为。
战斗类
Reach
: 使用精确的 3D 光线投射,检测玩家是否从不可能距离命中目标。
KillAura
: 分析攻击角度和模式以检测自动化操作。
AutoClicker
: 使用标准差来发现异常的数据包点击频率模式。
Velocity
: 防止滥用
setVelocity
数据包来抵消击退效果。
Crits
: 检测带有不可能移动数据包的虚假暴击行为。
玩家与世界交互类
Timer
: 防止客户端加速其内部计时器,从而获得超过每秒 20 tick 的数据包处理量。
Bad Packets
: 阻止可能导致服务器崩溃的无效数据包和数据包序列。
Inventory
: 防止在疾跑或执行需要关闭背包的动作时访问物品栏。
Scaffold
: 检测和惩罚用于建造的异常方块放置行为。
FastBreak
: 根据方块的硬度和工具附魔计算方块挖掘速度,并检测任何形式的 SpeedMine 或 Nuker 作弊。
命令
以下命令可供拥有相应权限节点的任何用户使用。
命令 权限节点 描述
/modac alerts modac.alerts 启用和禁用实时警报
/modac verbose modac.verbose 启用详细日志记录,用于调试目的
/modac notify modac.alerts 提供玩家当前统计数据和违规情况的摘要
/modac monitor modac.alerts 让你实时查看玩家正在获得的所有违规标志
/modac history modac.info 让你从数据库中查看玩家的历史记录
/modac top modac.alerts 让你查看在线前 10 名最可疑的玩家
/modac status modac.alerts 显示插件状态、数据库连接状态和 Webhook 状态
/modac kick modac.punish 踢出玩家,并通知 Discord 和你的工作人员
/modac ban modac.punish 封禁玩家,并通知 Discord 和你的工作人员
/modac reload modac.reload 重新加载配置
/modac testwebhook modac.reload 向你的 Discord Webhook 发送测试 ping
支持与 Bug 反馈
发现了 Bug,或者有建议希望添加新的检测项目?请确保在此处提交 Issue:hello97-gg/modac#issues
欢迎所有贡献,源代码可在 GitHub 上获取。本项目遵循 GNU General Public License v3.0 许可协议。
ModMC AntiCheat
Defending Servers (still in dev)
ModMC AntiCheat is a high-performance, version compatible anti-cheat solution, designed to secure your community while having minimal impact on your server. Built from the ground up on the PacketEvents API, ModMC AntiCheat detects modern hack clients by inspecting packets sent over the network. By focusing on performance and mathematical calculations, ModMC AntiCheat strives to offer the best balance between quick detection of malicious activity while preserving the player experience entirely, and is available for all versions of Spigot, Paper and Purpur since 1.8 up to 1.21.3.
Why use this?
No dependencies
: ModMC AntiCheat comes with all dependencies shaded in, so there is no need to include any extra JAR files when installing.
Discord Integration
: Alerts and punishments are sent to your discord webhook, acting as a log for your moderation team.
In-game monitoring
: By typing
/modac monitor
you can view a live stream of violation flags in your chat.
Built-in async SQLite logging
: Want to lookup a user's history days later? No problem. All database queries run async, so as not to impact the main server thread.
Extremely customizable
: Want to ban rather than kick? Need to adjust some thresholds? All of that is possible by editing the config.
What checks does it include?
There are currently 16 tuned and optimized checks included with ModMC AntiCheat, to combat the most common forms of client hacks.
Movement
Speed
: Detects various forms of movement speed hacks, including bunny hopping, speed potions, and ice-sprinting.
Fly
: Measures how long a player is airborne or hovering unnaturally to detect packet fly exploits.
NoFall
: Prevents spoofing of being on the ground to bypass falling damage.
Jesus
: Checks collision boxes against nearby liquids to detect water and lava walking.
ElytraFly
: Prevents infinite flight and excessive firework boosting with elytra wings.
NoSlow
: Detects attempts to retain sprinting speed while eating, blocking, or aiming.
Combat
Reach
: Uses precise 3D raycasting to detect when players hit their targets from an impossible distance.
KillAura
: Analyzes attack angles and patterns to detect automation.
AutoClicker
: Uses standard deviation to find abnormal packet timing patterns.
Velocity
: Prevents abuse of the
setVelocity
packet to negate knockback.
Crits
: Detects packets with impossible movement to fake critical hits.
Player & World
Timer
: Prevents clients from speeding up their internal timer to achieve packets per tick higher than 20.
Bad Packets
: Blocks invalid packets and packet sequences that could crash the server.
Inventory
: Prevents access to inventory while sprinting or performing actions that require the inventory to be closed.
Scaffold
: Detects and penalizes abnormal block placement used for building.
FastBreak
: Calculates how fast a block can be broken based on its hardness and the tools enchantments and detects any form of SpeedMine or Nuker hacks.
Commands
The following commands are available to anyone with the correct permission nodes.
Command Perm Node Description
/modac alerts modac.alerts Enables and disables live alerts
/modac verbose modac.verbose Enables verbose logging, for debugging purposes
/modac notify modac.alerts Gives a summary of a player's current stats and violations
/modac monitor modac.alerts Lets you view all of the flags that a player is getting in real time
/modac history modac.info Lets you view a player's history from the database
/modac top modac.alerts Lets you view the top 10 most suspicious online players
/modac status modac.alerts Shows the status of the plugin, database connection, and webhook
/modac kick modac.punish Kicks a player, and notifies Discord and your staff
/modac ban modac.punish Bans a player, and notifies Discord and your staff
/modac reload modac.reload Reloads the configuration
/modac testwebhook modac.reload Sends a test ping to your discord webhook
Support and Bugs
Found a bug, or have suggestions for new checks to implement? Please make sure to open an issue here: hello97-gg/modac#issues
All contributions are welcome, and the source code is available on GitHub. This project is licensed under the GNU General Public License v3.0.
评论 0
登录后参与评分
还没有评论,来抢沙发吧