HealthSync
版本 0.3 - 世界同步控制
- 新增世界限制系统:控制哪些世界中启用健康同步。
- 新增同步模式:当玩家进入受限世界时,可选择
PAUSE(暂停)或 KICK(踢出)。
- 新增反治疗逻辑:从安全世界返回时,自动将玩家状态重置为与团队一致。
- 修复漏洞:改善了在多个世界环境中的监听器可靠性。
HealthSync 是一款功能全面的 Minecraft 插件,通过允许玩家将生命值、饥饿值和状态效果等关键属性链接到一个统一的“团队”系统中,从而改变合作玩法。一人受伤,全员分担;一人进食,全员饱腹。生存真正成为一项团队努力。
主要功能
动态团队链接
- 小队系统:玩家组成包含所有者和成员的团队。
- 邀请逻辑:不再强制链接。通过
/linkhealth <player> 发送邀请,如果忽略,邀请将在 60 秒后自动过期。
- 团队管理:使用交互式 GUI (
/healthsync) 管理成员、踢出玩家或离开团队。
智能同步
- 共享生命值:所有伤害即时同步。如果一名成员受到伤害,所有人都会感到疼痛。
- 共享饥饿值与饱和度:保持小队饱腹!一名玩家吃的食物会补充所有已链接成员的饥饿条。
- 状态效果共享:药水、金苹果以及负面效果会在链接范围内共享。
- 扩展的命令套件:
/linkhealth 命令经过全面改进,新增了以下子命令:
/linkhealth create [name]:创建新团队(可选名称)。
/linkhealth invite <player>:向玩家发送邀请。
/linkhealth accept:接受待处理的邀请。
/linkhealth deny:拒绝待处理的邀请。
/linkhealth leave:离开当前团队。
/linkhealth delete:解散你的团队(仅限所有者)。
- 经验同步:(可选)共享经验等级和进度,用于共同的附魔会话。
世界限制同步
- 按世界控制:使用
enabled-worlds(启用世界)和 disabled-worlds(禁用世界)来白名单/黑名单同步区域。
- PAUSE 模式:在安全世界中,同步被冻结。当玩家返回生存世界时,他们的状态会立即“跳变”以匹配团队。
- KICK 模式:如果玩家进入受限世界,他们将被自动从团队中移除。
- 反治疗保护:防止玩家在安全世界中回血并将该生命值带回团队链接中。
反作弊“智能重生”
- 无免费回血:机制防止了“死亡/重生循环”漏洞。
- 如果一名已链接的玩家死亡并重生,只要其团队仍有成员受伤,他们不会以满血状态复活。
- 他们将与其幸存的队友拥有完全相同的生命值和饥饿值,确保战斗压力得以维持。
- 只有当整个团队团灭时,才应用标准的重生逻辑。
稳健且稳定
- 递归保护:高级防护机制可防止因快速同步事件导致的无限伤害循环或服务器崩溃。
- 断开连接处理:
- 如果团队所有者断开连接,所有权会自动转移给下一个活跃成员。
- 如果团队变为空,它将自动解散以节省资源。
安装
- 下载
HealthSync.jar 文件。
- 将其放入服务器的
plugins 文件夹中。
- 重启服务器。
- 根据需要配置
config.yml(可选)。
配置
config.yml 允许对同步机制进行深度自定义:
settings:
# 启用或禁用饥饿同步
link-hunger: true
# 单个团队允许的最大玩家数量
max-linked-players: 5
# 启用管理 GUI
gui:
enabled: true
update-interval: 20
effect-sync:
# 启用药水效果共享
enabled: true
# 新增:世界限制设置
worlds:
# PAUSE - 冻结同步但保持在团队内。KICK - 切换世界时从团队中移除。
restriction-mode: "PAUSE"
enabled-worlds:
- world
- world_nether
- world_the_end
disabled-worlds:
- spawn_world
命令与权限
玩家命令
| 命令 |
别名 |
描述 |
权限 |
/healthsync |
/hs |
打开链接管理 GUI。 |
healthsync.gui |
/linkhealth <player> |
|
向玩家发送团队邀请。 |
healthsync.link |
/unlinkhealth [player] |
|
解除自身链接或踢出成员(如果是所有者)。 |
healthsync.unlink |
/listlinked |
|
查看你当前的团队成员和状态。 |
healthsync.list |
管理员命令
| 命令 |
描述 |
权限 |
/healthsync reload |
重新加载配置文件。 |
healthsync.admin.reload |
/clearlinks |
强制解散服务器上所有团队。 |
healthsync.admin.clear |
权限节点
healthsync.* - 授予所有权限(默认:OP)
healthsync.admin.bypass - 防止玩家被邀请或链接。
? 增强你的体验
想将挑战提升到新的高度吗?将 Health-Sync 与 InventorySync 搭配使用!
- 同步物品栏:实时即时共享物品、工具和资源。
- 同步护甲:装备一件,全员装备!护甲更新同步至所有人。
- 同步经验:共同升级并共享经验进度。
同时使用这两个插件将创造终极的合作生存挑战!
支持
发现漏洞或有建议?加入我们的支持社区 Discord Server。
HealthSync
Version 0.3 - World Sync Control
- Added World Restriction System: Control which worlds health-sync is active in.
- Added Sync Modes: Choose between
PAUSE and KICK when players enter restricted worlds.
- Added Anti-Heal Logic: Automatically forces player stats to match the group upon returning from a safe world.
- Bug Fixes: Improved listener reliability across multiple world environments.
HealthSync is a comprehensive Minecraft plugin that transforms cooperative gameplay by allowing players to link their vital stats—Health, Hunger, and Effects—into a unified "Group" system. Damage taken by one is shared by all. If one eats, everyone is fed. Survival becomes a true team effort.
Key Features
Dynamic Group Linking
- Squad-Based System: Players form groups with an Owner and Members.
- Invitation Logic: No more force-linking. Send invites via
/linkhealth <player> which expire automatically after 60 seconds if ignored.
- Group Management: Use the interactive GUI (
/healthsync) to manage members, kick players, or leave groups.
Smart Synchronization
- Shared Health: All damage is synchronized instantly. If a member takes damage, everyone feels it.
- Shared Hunger & Saturation: Keep your squad fed! Food eaten by one player contributes to the hunger bars of all linked members.
- Effect Sharing: Potions, Golden Apples, and negative effects are shared across the link.
- Expanded Command Suite: The
/linkhealth command has been overhauled with new subcommands:
/linkhealth create [name]: Create a new group (optional name).
/linkhealth invite <player>: Send an invitation to a player.
/linkhealth accept: Accept a pending invitation.
/linkhealth deny: Deny a pending invitation.
/linkhealth leave: Leave your current group.
/linkhealth delete: Disband your group (Owner only).
- Experience Sync: (Optional) Share XP levels and progress for shared enchanting sessions.
World Restriction Sync
- Per-World Control: Use
enabled-worlds and disabled-worlds to white/blacklist sync areas.
- PAUSE Mode: Syncing is frozen for players in safe worlds. Upon returning to a survival world, their stats "snap" back to match the group immediately.
- KICK Mode: Players are automatically removed from their group if they enter a restricted world.
- Anti-Heal Protection: Prevents players from healing in safe worlds and bringing that health back into the group link.
Anti-Exploit "Smart Respawn"
- No Free Heals: Mechanics prevent the "Death/Respawn Loop" exploit.
- If a linked player dies and respawns, they do not come back with full health if their team is injured.
- They respawn with the exact health and hunger of their surviving teammates, ensuring the pressure of the fight is maintained.
- Standard respawn logic applies only if the entire team wipes.
Robust & Stable
- Recursion Protection: Advanced guarding prevents infinite damage loops or server crashes from rapid sync events.
- Disconnect Handling:
- If a group owner disconnects, ownership is automatically transferred to the next active member.
- If a group becomes empty, it automatically disbands to save resources.
Installation
- Download the
HealthSync.jar file.
- Place it in your server's
plugins folder.
- Restart your server.
- Configure
config.yml to your liking (optional).
Configuration
The config.yml allows deep customization of the sync mechanics:
settings:
# Enable or disable hunger synchronization
link-hunger: true
# Maximum players allowed in a single group
max-linked-players: 5
# Enable GUI for management
gui:
enabled: true
update-interval: 20
effect-sync:
# Enable sharing of potion effects
enabled: true
# NEW: World Restriction Settings
worlds:
# PAUSE - Freeze sync but stay in group. KICK - Remove from group on world change.
restriction-mode: "PAUSE"
enabled-worlds:
- world
- world_nether
- world_the_end
disabled-worlds:
- spawn_world
Commands & Permissions
Player Commands
| Command |
Alias |
Description |
Permission |
/healthsync |
/hs |
Opens the Link Management GUI. |
healthsync.gui |
/linkhealth <player> |
|
Send a group invite to a player. |
healthsync.link |
/unlinkhealth [player] |
|
Unlink yourself or kick a member (if owner). |
healthsync.unlink |
/listlinked |
|
View your current group members and stats. |
healthsync.list |
Admin Commands
| Command |
Description |
Permission |
/healthsync reload |
Reloads the configuration file. |
healthsync.admin.reload |
/clearlinks |
Forcefully dissolves ALL groups on the server. |
healthsync.admin.clear |
Permissions Nodes
healthsync.* - Grant all permissions (Default: OP)
healthsync.admin.bypass - Prevents the player from being invited or linked.
? Enhance Your Experience
Want to take the challenge to the next level? Pair Health-Sync with InventorySync!
- ** Sync Inventory**: Share items, tools, and resources instantly in real-time.
- ** Sync Armor**: Equip one, equip all! Armor updates for everyone.
- ** Sync XP**: Level up together and share the experience progress.
Combining both plugins creates the ultimate cooperative survival challenge!
Support
Found a bug or have a suggestion? Join our support community Discord Server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧