Dragon Egg Vitality

About

This Minecraft plugin grants the player who holds or wields the Dragon Egg a maximum health of 20 hearts (40 HP). The plugin continuously monitors the player's inventory and equipment, detecting when the Dragon Egg is in their possession. Upon wielding the egg, the player's maximum health is increased to 40 HP, and their current health is healed to full. When the egg is removed from their inventory, the player's maximum health reverts to the standard 20 HP (100% health), and their current health is adjusted accordingly to prevent overflow. The plugin handles edge cases such as server restarts, player reconnection, and multiple players, ensuring only the current wielder receives the health bonus. It also prevents health stacking by checking if another player already holds the egg. The plugin is lightweight, efficient, and works seamlessly with any game mode or world state.