Act as an Elite Senior PaperMC Java Plugin Developer. I need you to write the COMPLETE, production-ready code for a massive RPG-SMP plugin named "DeadlySouls" (Target: Minecraft 1.21.x).
CRITICAL INSTRUCTIONS FOR GENERATION:
Do NOT give me a step-by-step plan. Output the FULL Java code, class by class.
If you hit the response length limit, stop cleanly and I will type "continue" for you to resume.
Do NOT use placeholders like // add logic here. Write 100% complete methods.
ARCHITECTURAL RULES & BUG FIXES:
API: Strictly 1.21+ Paper API. Use PersistentDataContainer (PDC) for all custom items, soul tracking, and player data. Zero NMS.
INVENTORY INVENTORY GUI Exploit Fix: In ALL custom GUIs (Recipe, Crafting, Revive), strictly use InventoryClickEvent with event.setCancelled(true) for all decorative slots to prevent players from stealing items like Glass Panes.
Action Bar Stability: Use a SINGLE synchronous BukkitRunnable (every 20 ticks) to display lives. No flickering.
Threading: Entity spawning (Mob Ambush) MUST be on the main server thread to prevent NullPointerExceptions.
NO ALTARS: Do not code physical block altars. All mechanics are INVENTORY INVENTORY GUI-based or event-based.
Chat & Console: Prefix is &8[&c&lDeadly&4&lSouls&8] &7.
FEATURE 1: Onboarding & Awakening First Join: Give a "DeadlySouls Guide" (Written Book) and a "Mysterious God Soul" (Custom glowing item).
Action: Right-clicking the Mysterious Soul locks player movement, consumes the item, and starts a strict 10-second cinematic (Hex-gradient titles, heartbeat/thunder sounds). Use this.cancel() correctly.
Reward: After 10s, unlock movement and give 1 of 10 "Normal God Souls".
FEATURE 2: Normal Souls & Leveling Items: Distinct 1.21 items (e.g., Echo Shard, Amethyst).
Abilities: 1 Permanent Passive (e.g., Speed II) + 1 Active Right-Click Ability with cooldown (e.g., Dash, AoE Smash).
Leveling: Track mob kills via PDC. Souls upgrade (Lvl 1 to 3), progressively reducing the active cooldown.
FEATURE 3: Ultimate Custom Souls 5 Ultimate Souls craftable ONLY ONCE per server via /ds recipe INVENTORY INVENTORY GUI.
Recipe: Requires "Player Souls" + rare dimension items.
Powers & Curses: Massive powers (Flight, AoE Healing) balanced with a Curse (e.g., 2x fall damage). in recipe INVENTORY INVENTORY GUI add a revive card also crafted by 4 player souls and 1 totem (no ritual /mob abush needed) After crafting when player right clicks revive card open a revive menu with heads of all banished player offline/online, right clicking on any head opens a confirmation menu if player confirm then, revive clicked player FEATURE 4: Life System, Combat Log & Banishment Lives: Max 5. Displayed on Action Bar ("&#FF0000❤ Lives: 5").
Combat Log: 10s combat tag. Quitting while tagged = instantly lose 1 life and drop full inventory expect god soul and no access to commands during combat , combat will occur at hit of players.
Banishment (5th Death): At 0 lives, strike lightning, play Wither sound, spawn a 30s hologram ("&c&l[Player] has been banished!"), and force-respawn them to Purgatory.
FEATURE 5: Purgatory (Jail) & Escape Rules: Teleport to Purgatory at 0 lives. Cancel ALL block breaking EXCEPT soul_sand. Disable block placing, item dropping/pickup (except soul sand), and all commands except chat. God mod - no damage no hungering just being like a soul give a unbreakable diamond shovel (only 'soul_sand' minable Escape: Mining 500 Soul Sand yields 1 "Fragment of Hope". Right-clicking 4 Fragments self-revives the player, RESETS LIVES TO 5, and teleports them to spawn.
FEATURE 6: Advanced Soul Stealing & Retrieval Bound State: God Souls are UNDROPPABLE and UNMOVABLE while the owner has 1 to 5 lives. Use PDC to lock them.
The Theft: On the 5th (final) death, the equipped God Soul is forcefully removed. If killed by a player, it is transferred to the killer's inventory. (Tag it with PDC original_owner_uuid).
The Return: When the original owner escapes Purgatory (uses 4 Fragments), the plugin MUST global-search the killer's inventory and enderchest or any chest. Delete the stolen soul from the killer and automatically give it back to the original owner.
FEATURE 7: The Mob Ambush Ritual Trigger: Crafting an Ultimate Soul Ambush Task: A safe synchronous BukkitRunnable spawns 3 buffed Zombies, 3 Skeletons, and 1 Vindicator near the initiator every 20 seconds for 60 seconds (3 waves). Ensure the player is online and alive before spawning.
FEATURE 8: Admin Utilities (deadlysouls.admin) /ds admin setpurgatory /ds admin setlives <player> <amount> /ds admin bypass <on/off> /ds admin forceambush <player> /ds admin give <soul> <player> /ds admin revive <player> /ds admin reset craft (resets the crafting limit of custom souls) /ds admin player reset <player>(resets the whole data of player' /ds admin chest <player> FEATURE 9: Player Commands /ds stats (opens a INVENTORY INVENTORY GUI where the player's all the kills deaths lives and soul name are mentioned ) ds soul (shows the abilities of players god soul ds chest ( opens a private chest for particular player where he can save his stuff ) Please begin outputting the Java classes now. Start with the Main class, Managers, and Listeners.
The generation was stopped before any content could be produced.
No files in this session