⚠️ 本项目需要在客户端和服务器端同时设置 ⚠️
? 什么是 HandShaker?
HandShaker 是一个用于 Minecraft 服务器和客户端的跨平台模组/插件验证系统。它使服务器能够检测玩家正在运行哪些模组,并通过可定制的策略执行模组限制。
? 核心功能
- Fabric/Neoforge 客户端 → 加入时向服务器发送当前活跃的模组列表
- Paper/Fabric/NeoForge 服务端 → 根据配置规则验证模组列表并执行限制
- 多平台支持 → 兼容 Fabric、Paper 和 NeoForge
- 密码学完整性 → 防止篡改或自行编译的 HandShaker 模组
- 灵活配置 → 针对每个模组的规则:Required(必需)、Allowed(允许)或 Blacklisted(黑名单)
✨ 主要特性
| Feature |
Description |
| ? Per-Mod Configuration |
单独设置模组为 Required、Allowed 或 Blacklisted |
| ? Customizable Enforcement |
可配置的踢出消息和自动封禁能力 |
| ? Player History Database |
存储和查询玩家的模组历史记录 |
| ? Player Mod Viewing |
管理员可以查看其他玩家的模组列表 |
| ✔️ Integrity Verification |
加密签名防止伪造的模组报告 |
| ? Custom Actions |
允许为触发的模组设置自定义事件(命令) |
?️ 平台对比
✅ 支持/正常工作
⚠️ 存在问题/不支持
❌ 不支持/损坏
| Features |
Paper (1.x - 6.x) |
Fabric (2.x - 6.x) |
NeoForge (6.x+) |
| Integrity Checking |
✅ 6.x+ ⚠️ 3.x - 5.x
|
✅ 6.x+ ⚠️ 3.x - 5.x |
✅ 6.0.0+ |
| Configurable Rules |
✅ 6.0.0+ |
✅ 6.0.0+ |
✅ 6.0.0+ |
| Database Storage |
✅ 5.0.0+ |
✅ 5.0.0+ |
✅ 6.0.0+ |
| GeyserMC/Floodgate |
✅ 5.2.0+ |
✅ 5.2.0+ |
❌ |
| Permissions |
✅ 5.0.0+ |
✅ 5.0.0+ |
❌ |
| Folia Compatibility |
✅ 6.0.0+ |
❌ |
❌ |
| Clickable text in chat |
✅ |
❌ |
❌ |
? 快速开始
安装
-
下载适用于您平台的相应模组/插件:
- Fabric Client: 将 JAR 文件放入
mods/ 文件夹
- Paper Server: 将 JAR 文件放入
plugins/ 文件夹
- NeoForge Client: 将 JAR 文件放入
mods/ 文件夹
-
配置模组/插件
基础配置
config: v4
# Behavior: "strict" - Force requires client-side mod or "vanilla" allow also non-mod clients
behavior: strict
# Integrity Mode: "signed" or "dev" - allow unsigned mods (if you are building own client/server fork)
integrity-mode: signed
# Whitelist mode: true = only allowed mods (inside whitelisted.yml), false = allowed by default.
# To work properly set "mods-whitelisted-enabled" must be true
whitelist: false
# Allow Bedrock players
allow-bedrock-players: false
# Player Database: Store and track player mod history (requires playerdb to be enabled)
playerdb-enabled: false
# Mod List Toggles: Enable/disable each mod list without losing configuration
mods-required-enabled: true
mods-blacklisted-enabled: true
mods-whitelisted-enabled: true
# Kick Messages - customize as needed (use {mod} for mod name)
messages:
kick: "You are using a blacklisted mod: {mod}. Please remove it to join this server."
no-handshake: "To connect to this server please download 'Hand-shaker' mod."
missing-whitelist: "You are missing required mods: {mod}. Please install them to join this server."
invalid-signature: "Invalid client signature. Please use the official HandShaker client mod."
ban: "您因使用黑名单模组 {mod} 而被封禁。"
bedrock: "此服务器不允许基岩版玩家加入。"
可在此添加自定义动作消息
占位符为 {mod} - 触发行为的模组, {player}
test_action: "你好,{player}!你正在使用 {mod}!感谢你使用它!"
```yaml
actions:
# 系统动作(使用硬编码函数,不建议直接复制这些配置)
kick:
commands:
- "kick {player} {messages.kick}"
ban:
commands:
- "ban {player} {messages.ban}"
log: true
log:
missing: "{player} 尝试加入但缺少所需的模组/多个模组:{mod}"
blacklisted: "{player} 尝试使用黑名单模组/多个黑名单模组加入:{mod}"
# 自定义动作示例
# 占位符为 {mod} - 触发行为的模组, {player}, {messages.name_from_config.yml}
test_action:
commands:
- "msg {player} {messages.test_action}"
- "give {player} minecraft:diamond 1"
- "say 向正在使用 {mod} 的 {player} 问好!"
watchdog:
commands:
- "ac increase_alert_level {player} 1000"
? 权限
| 权限 |
描述 |
默认值 |
handshaker.admin |
访问管理员命令 |
操作员 (Operator) |
handshaker.bypass |
绕过模组限制 |
否 (False) |
? 支持版本
| 加载器 |
版本 |
状态 |
版本 |
状态 |
| Fabric |
1.21 - 1.21.10, 1.21.11 |
✅ 支持 |
N/A |
N/A |
| Paper |
1.21+ |
✅ 支持 |
N/A |
N/A |
| NeoForge |
1.21 - 1.21.10, 1.21.11 |
✅ 支持 |
1.20.1 |
计划中 |
? 文档
路线图
? 贡献
欢迎提交 Issue、Pull Request 和建议!请查看 GitHub 仓库 以获取贡献指南。
⚠️ This project requires to be set up on both sides, client and server side ⚠️
📋 What is HandShaker?
HandShaker is a cross-platform mod/plugin verification system for Minecraft servers and clients. It enables servers to detect which mods players are running and enforce mod restrictions with customizable policies.
🎯 Core Functionality
- Fabric/Neoforge Client → Sends your active mod list to the server upon join
- Paper/Fabric/NeoForge Server → Validates mod lists against configured rules and enforces restrictions
- Multi-platform Support → Works across Fabric, Paper, and NeoForge
- Cryptographic Integrity → Prevents tampered or self-compiled HandShaker mods
- Flexible Configuration → Per-mod rules: Required, Allowed, or Blacklisted
✨ Key Features
| Feature |
Description |
| 🔐 Per-Mod Configuration |
Individually set mod allowance to Required, Allowed, or Blacklisted |
| 🚫 Customizable Enforcement |
Configurable kick messages and auto-ban capabilities |
| 📊 Player History Database |
Store and query player mod histories |
| 👀 Player Mod Viewing |
Administrators can see other players' mod lists |
| ✔️ Integrity Verification |
Cryptographic signatures prevent spoofed mod reports |
| 🔐 Custom Actions |
Allows to setup custom events (commands) for triggered mods |
🏗️ Platform Comparison
✅ Supported/Working
⚠️ Issues/Unsupported
❌ Unsupported/Broken
| Features |
Paper (1.x - 6.x) |
Fabric (2.x - 6.x) |
NeoForge (6.x+) |
| Integrity Checking |
✅ 6.x+ ⚠️ 3.x - 5.x
|
✅ 6.x+ ⚠️ 3.x - 5.x |
✅ 6.0.0+ |
| Configurable Rules |
✅ 6.0.0+ |
✅ 6.0.0+ |
✅ 6.0.0+ |
| Database Storage |
✅ 5.0.0+ |
✅ 5.0.0+ |
✅ 6.0.0+ |
| GeyserMC/Floodgate |
✅ 5.2.0+ |
✅ 5.2.0+ |
❌ |
| Permissions |
✅ 5.0.0+ |
✅ 5.0.0+ |
❌ |
| Folia Compatibility |
✅ 6.0.0+ |
❌ |
❌ |
| Clickable text in chat |
✅ |
❌ |
❌ |
🚀 Quick Start
Installation
-
Download the appropriate mod/plugin for your platform:
- Fabric Client: Place JAR in
mods/ folder
- Paper Server: Place JAR in
plugins/ folder
- NeoForge Client: Place JAR in
mods/ folder
-
Configure the mod/plugin
Basic Configuration
config: v4
# Behavior: "strict" - Force requires client-side mod or "vanilla" allow also non-mod clients
behavior: strict
# Integrity Mode: "signed" or "dev" - allow unsigned mods (if you are building own client/server fork)
integrity-mode: signed
# Whitelist mode: true = only allowed mods (inside whitelisted.yml), false = allowed by default.
# To work properly set "mods-whitelisted-enabled" must be true
whitelist: false
# Allow Bedrock players
allow-bedrock-players: false
# Player Database: Store and track player mod history (requires playerdb to be enabled)
playerdb-enabled: false
# Mod List Toggles: Enable/disable each mod list without losing configuration
mods-required-enabled: true
mods-blacklisted-enabled: true
mods-whitelisted-enabled: true
# Kick Messages - customize as needed (use {mod} for mod name)
messages:
kick: "You are using a blacklisted mod: {mod}. Please remove it to join this server."
no-handshake: "To connect to this server please download 'Hand-shaker' mod."
missing-whitelist: "You are missing required mods: {mod}. Please install them to join this server."
invalid-signature: "Invalid client signature. Please use the official HandShaker client mod."
ban: "You have been banned for using a blacklisted mod: {mod}."
bedrock: "Bedrock players are not allowed on this server."
# custom messages for actions can be added here
# placeholders are {mod} - mod which triggered, {player}
test_action: "Hi, {player}! You are using {mod}! Thanks for using it!"
actions:
# System actions (Uses hardcoded functions, not recomended to copy these)
kick:
commands:
- "kick {player} {messages.kick}"
ban:
commands:
- "ban {player} {messages.ban}"
log: true
log:
missing: "{player} tried to join but missing required mod/mods: {mod}"
blacklisted: "{player} tried to join with blacklisted mod/mods: {mod}"
# Examples of custom actions
# placeholders are {mod} - mod which triggered, {player}, {messages.name_from_config.yml}
test_action:
commands:
- "msg {player} {messages.test_action}"
- "give {player} minecraft:diamond 1"
- "say Say Hello to {player}, who is using {mod}!"
watchdog:
commands:
- "ac increase_alert_level {player} 1000"
📝 Permissions
| Permission |
Description |
Default |
handshaker.admin |
Access to admin commands |
Operator |
handshaker.bypass |
Bypass mod restrictions |
False |
🎮 Supported Versions
| Loader |
Versions |
Status |
Versions |
Status |
| Fabric |
1.21 - 1.21.10, 1.21.11 |
✅ Supported |
N/A |
N/A |
| Paper |
1.21+ |
✅ Supported |
N/A |
N/A |
| NeoForge |
1.21 - 1.21.10, 1.21.11 |
✅ Supported |
1.20.1 |
Planned |
📚 Documentation
Roadmap
🤝 Contributing
Issues, pull requests, and suggestions are welcome! Check the GitHub repository for contribution guidelines.
评论 0
登录后参与评分
还没有评论,来抢沙发吧