Hand Shaker

模组

· 作者 Suskese

为服务器管理员或整合包开发者提供的解决方案,用于断开携带不需要的模组的用户连接,或允许/要求特定模组

0 本站下载 0 关注 更新于 1 周前

最新 7.0.1-u · 26.3 · Folia / Paper

一键开服(送7天)

⚠️ 本项目需要在客户端和服务器端同时设置 ⚠️

? HandShaker 7.0.0 (alpha) Wiki is there!


? 什么是 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 ✅ ❌ ❌

? 快速开始

Commands

安装

  1. 下载适用于您平台的相应模组/插件:

    • Fabric Client: 将 JAR 文件放入 mods/ 文件夹
    • Paper Server: 将 JAR 文件放入 plugins/ 文件夹
    • NeoForge Client: 将 JAR 文件放入 mods/ 文件夹
  2. 配置模组/插件

基础配置

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 计划中

? 文档


路线图

  • 更多生活质量 (QoL) 功能

? 贡献

欢迎提交 Issue、Pull Request 和建议!请查看 GitHub 仓库 以获取贡献指南。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源