Create a Minecraft plugin (Paper/Spigot API, latest version) with the following features: 1. ELEMENTAL POWERS SYSTEM - Add 10 elemental powers: Lightning, Fire, Water, Earth, Air, Ice, Darkness, Light, Nature, and Metal. - Each power has: - A main core item (e.g., lightningcore) - A broken version (e.g., brokenlightningcore) 2. CRAFTING SYSTEM - Players craft elemental powers using a crafting table: - Place 1 main core in the center - Surround it with 8 broken cores of the same type - Result: A black-colored Totem of Undying (custom item) - Name: "<Element> Totem" (e.g., Lightning Totem) - Custom model data (optional) 3. POWER ACTIVATION - When a player right-clicks the totem in the main hand: - The totem is consumed - The player gains that elemental power permanently (until death) - Show action bar/title: "You have obtained <Element> Power!" 4. POWER USAGE SYSTEM - Each power can be activated (right-click or ability key like sneak + right click) - Power duration: 10 seconds - Cooldown: 3 minutes (180 seconds) - Show cooldown via action bar or boss bar 5. EXAMPLE ABILITIES (Implement at least basic versions) - Lightning: Strike lightning at nearby enemies - Fire: Set enemies on fire - Water: Heal player slowly - Earth: Give resistance - Air: Speed + jump boost - Ice: Freeze enemies (slowness) - Darkness: Blind nearby players - Light: Regeneration + glowing enemies - Nature: Poison enemies - Metal: Strength boost 6. PLAYER KILL MECHANIC - If a player with an elemental power is killed: - The killer receives the corresponding black totem item - The victim loses the power 7. LIFE SYSTEM - Each player has 4 lives total - On each death: - Lose 1 life - On last life: - If killed: - Drop: - Player head - "Life items" (custom items representing lives) 8. REVIVAL SYSTEM - Players can revive a dead player: - Crafting recipe: - Player head in center - Surround with all 4 life items - Must be done in crafting table only - Revival process: - Takes 3 minutes - After completion, player respawns 9. DATA STORAGE - Save: - Player powers - Lives remaining - Use persistent storage (YAML or database) 10. EXTRA FEATURES - Prevent players from having multiple powers at once - Add config file: - Cooldowns - Duration - Lives count - Add permissions: - Use powers - Admin commands 11. OPTIONAL COMMANDS - /givecore <player> <element> - /setlives <player> <amount> - /removepower <player> Write clean, optimized Java code using Spigot/Paper API with proper event handling, item metadata, and cooldown management.