HealthSync
--(1.21.11)-green.svg)
Version 0.3 - World Sync Control
- Added World Restriction System: Control which worlds health-sync is active in.
- Added Sync Modes: Choose between
PAUSEandKICKwhen 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
/linkhealthcommand 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-worldsanddisabled-worldsto 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.jarfile. - Place it in your server's
pluginsfolder. - Restart your server.
- Configure
config.ymlto 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.
All Versions
+ Add VersionAll notable changes to the **HealthSync** plugin will be documented in this file.
## [0.3] - 2026-02-28
### ✨ Added
- World Restriction System**: New logic to enable or disable health syncing based on specific worlds.
- Restriction Modes**: Added
PAUSEandKICKmodes inconfig.yml. PAUSE: Freezes sync for players in restricted worlds.KICK: Automatically removes players from their group when entering restricted worlds.- Anti-Heal Logic**: Implemented "Snap-Sync" which forces a player's stats to match their group immediately upon returning from a safe world to a survival world.
- New World Listener**: Handles real-time transitions between enabled and disabled worlds.
- Safety Checks**: Added world-enabled verification to Group Creation, Invitations, and Accepting links.
### 🔧 Fixed
- Improved listener reliability for damage, healing, and hunger events in multi-world environments.
- Fixed potential "jump-sync" issues during world changes by adding a 5-tick sync delay.
All notable changes to the **HealthSync** project will be documented in this file.
## [0.2] - 2026-01-08
### ✨ New Features
- Smart Respawn System**: Implemented logically consistent respawn mechanics.
- Respawning players now inherit the group's current low health/hunger state instead of healing the group to full.
- Prevents "tactical suicide" to restore team health.
- Invitation Expiry**: Group invites now automatically expire after 60 seconds to prevent invite spam lingering.
### 🐛 Bug Fixes
- Infinite Damage Loop**: Fixed a critical recursion issue where syncing damage would trigger the damage event again, causing server crashes (StackOverflow).
- Potion Effect Loop**: Resolved an issue where syncing potion effects caused an infinite update loop between client and server.
- Hunger Sync Glitch**: Fixed an issue where saturation synchronization could cause "ghost hunger" updates.
- Group Cleanup**: Fixed a logic error where groups would not properly dissolve if the owner disconnected, leaving "ghost groups".
### ⚡ Improvements
- Performance**: Optimized the
HealingListenerandHungerListenerto use cached values, reducing the number of unnecessary packet updates. - Code Structure**: Refactored
LinkManagerto better handle Group objects instead of raw UUID maps. - GUI**: Updated the Management GUI to correctly display live heart/hunger values of members.
## [0.1] - Previous
- Initial Groups Implementation.
- Basic Health Sharing.
- GUI Introduction.