FairCount
FairCount 是一款专为 Fabric 设计的轻量级反作弊与完整性验证模组。它严格检查并验证客户端已安装的模组和启用的资源包,从而在多人服务器中维持公平且规范的游戏环境。
注意:本模组目前处于活跃开发阶段。在生产服务器部署前,请在测试环境中进行充分测试。
链接
- Modrinth: 在 Modrinth 上查看
- CurseForge: 在 CurseForge 上查看
- 源代码: GitHub
- 问题追踪: GitHub Issues
- 社区: Discord 服务器
功能特性
- 严格的模组白名单:自动将连接玩家的模组列表与服务器白名单进行校验。未授权的模组会导致玩家被立即断开连接,并提供清晰的踢出理由。
- SHA-256 校验和验证:除了模组 ID 外,还会对 JAR 文件的 SHA-256 哈希值进行验证,防止伪造的模组 ID 或被篡改的作弊客户端注入。
- 资源包检查与哈希校验:检测并限制未经授权的第三方资源包(如 X-Ray / ESP 包),支持可选的 SHA-256 哈希检查。
- 深层嵌套模组检测 (JiJ):扫描客户端上的独立 JAR 文件以及内部的 Jar-in-Jar 依赖项。
- 强制客户端安装:如果玩家未安装 FairCount,将在 3 秒内自动将其断开连接。
- Fabric API 自动放行:以
fabric-开头的子模块会自动获得允许,无需手动配置。 - OP 与玩家白名单:服务器管理员以及通过 UUID 注册的玩家可绕过检查。
- 游戏内热重载命令:无需重启服务器,即可直接通过命令管理允许的模组、资源包和白名单玩家。
安装与要求
FairCount 必须同时安装在服务器端和客户端。
- 需要 Fabric Loader 和 Fabric API。
- 将 FairCount 放入服务器和客户端的
mods文件夹中。 - 启动一次服务器,它会在
config/faircount/下自动生成配置文件。
命令(需要 OP 权限)
模组管理
/faircount mod add <mod_id>- 将模组 ID 加入白名单(允许所有版本)。/faircount mod add <mod_id> <sha256>- 将带有特定 SHA-256 校验和的模组加入白名单。/faircount mod add all- 将所有当前由连接客户端加载的模组加入白名单。/faircount mod remove <mod_id>- 从白名单中移除一个模组。/faircount mod remove <mod_id> <sha256>- 移除特定的哈希条目。/faircount mod remove all- 清除所有白名单中的模组。/faircount mod list- 列出所有白名单模组及注册的哈希值。
资源包管理
/faircount pack add <pack_name>- 按名称将资源包加入白名单。/faircount pack add <pack_name> <sha256>- 将带有特定 SHA-256 校验和的资源包加入白名单。/faircount pack add all- 将所有当前由连接客户端加载的资源包加入白名单。/faircount pack remove <pack_name>- 从白名单中移除一个资源包。/faircount pack remove <pack_name> <sha256>- 移除特定的哈希条目。/faircount pack remove all- 清除所有白名单中的资源包。/faircount pack list- 列出所有允许的资源包。
玩家白名单管理
/faircount player add <player_name|uuid>- 将玩家添加到白名单。/faircount player remove <player_name|uuid>- 从白名单中移除玩家。/faircount player list- 列出所有已豁免检查的玩家。
配置文件 (config/faircount/)
mods.json: 白名单模组 ID 及其允许的 SHA-256 哈希值。resource_packs.json: 白名单资源包名称及其允许的 SHA-256 哈希值。players.json: 豁免检查的玩家 UUID 列表。
FairCount
FairCount is a lightweight anti-cheat and integrity verification mod designed for Fabric. It strictly inspects and verifies client-side installed mods and active resource packs, enforcing a fair and regulated gameplay environment on multiplayer servers.
Notice: This mod is currently in active development. Please test thoroughly in a staging environment before deploying to production servers.
Links
- Modrinth: View on Modrinth
- CurseForge: View on CurseForge
- Source Code: GitHub
- Issue Tracker: GitHub Issues
- Community: Discord Server
Features
- Strict Mod Whitelisting: Automatically validates connecting players' mod lists against a server whitelist. Unauthorized mods result in an immediate disconnect with clear kick reasons.
- SHA-256 Checksum Verification: Validates the SHA-256 hash of JAR files in addition to Mod IDs, preventing spoofed Mod IDs or tampered cheat client injection.
- Resource Pack Inspection & Hashing: Detects and restricts unauthorized external resource packs (such as X-Ray / ESP packs) with optional SHA-256 hash checking.
- Deep Nested Mod Detection (JiJ): Scans both standalone JAR files and internal Jar-in-Jar dependencies on the client.
- Mandatory Client Enforcement: Automatically disconnects players within 3 seconds if they do not have FairCount installed.
- Automatic Fabric API Pass: Sub-modules starting with
fabric-are automatically allowed without manual configuration. - OP & Player Bypass List: Server operators and players registered by UUID can bypass inspection checks.
- In-Game Hot-Reload Commands: Manage allowed mods, resource packs, and bypass players directly via commands without restarting the server.
Installation & Requirements
FairCount must be installed on both the Server and Client.
- Requires Fabric Loader and Fabric API.
- Place FairCount into the
modsfolder of both the server and client. - Start the server once to automatically generate the configuration files under
config/faircount/.
Commands (Requires OP)
Mod Management
/faircount mod add <mod_id>- Whitelist a mod ID (all versions allowed)./faircount mod add <mod_id> <sha256>- Whitelist a mod with a specific SHA-256 checksum./faircount mod add all- Whitelist all mods currently loaded by connected clients./faircount mod remove <mod_id>- Remove a mod from the whitelist./faircount mod remove <mod_id> <sha256>- Remove a specific hash entry./faircount mod remove all- Clear all whitelisted mods./faircount mod list- List all whitelisted mods and registered hashes.
Resource Pack Management
/faircount pack add <pack_name>- Whitelist a resource pack by name./faircount pack add <pack_name> <sha256>- Whitelist a resource pack with a specific SHA-256 checksum./faircount pack add all- Whitelist all resource packs currently loaded by connected clients./faircount pack remove <pack_name>- Remove a resource pack from the whitelist./faircount pack remove <pack_name> <sha256>- Remove a specific hash entry./faircount pack remove all- Clear all whitelisted resource packs./faircount pack list- List all allowed resource packs.
Player Bypass Management
/faircount player add <player_name|uuid>- Add a player to the bypass list./faircount player remove <player_name|uuid>- Remove a player from the bypass list./faircount player list- List all bypassed players.
Configuration Files (config/faircount/)
mods.json: Whitelisted Mod IDs and their allowed SHA-256 hashes.resource_packs.json: Whitelisted resource pack names and allowed SHA-256 hashes.players.json: UUID list of players exempted from checks.
下载 FairCount
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FairCount
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FairCount
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FairCount
下载 FairCount
下载 FairCount
下载 FairCount
下载 FairCount
下载 FairCount
兼容 26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧