D

Act as an Elite Spigot/PaperMC Java Plugin Developer. I need you to completely code a massive, bug-free, and highly optimized custom SMP plugin called "DeadlySouls" for Minecraft version 1.20.1+.

CRITICAL INSTRUCTION: Do NOT use any "Altar" block system. Remove all previous Altar logic. All custom crafting MUST be handled via a professional and bug-free Custom INVENTORY GUI. All credits and rights belong to "DEADLY_XPLAYZ". This name must flash beautifully in the server console on startup and be included in the chat prefix for all plugin messages.

Here is the EXACT feature requirement document:

1. Enhanced Rolling & Starting Abilities (First Join)

  • On first join, trigger a 10-second premium Rolling Animation on screen using Titles/Subtitles with Hex gradients. Play epic sound effects (heartbeat & thunder).
  • After 10 seconds, player receives 1 of 10 "Normal God Souls" (Undroppable, Unmovable).
  • ABILITY: Each Normal God Soul must grant an immediate working basic ability (e.g., passive Speed II, Jump Boost, or a Dash on right-click).
  • Emits a clean, lag-free particle aura.

2. Professional Life & Evolution System

  • Players start with 5 Lives. Display on Action Bar using Hex Colors (e.g., "&#FF0000❤ Lives: 5"). NO flickering.
  • Death: Deducts 1 life and drops a physical "Player Soul" item.
  • Kill Streak: 5 kills without dying grants a 2-minute "Bloodlust" (Strength II) buff.
  • Anti-Combat Log: If a player logs out while "Combat Tagged" (15s), they lose 1 life instantly and drop their Player Soul.

3. Cinematic Executions & Death Holograms

  • When a player loses their FINAL life: 3 lightning strikes, black smoke particles, and a global Wither sound.
  • Spawn a hologram at death location: "&c&l[Player] has been banished!" (disappears after 30s).

4. Purgatory (Jail) & The Secret Escape

  • 0 lives = teleported to Purgatory as a Ghost.
  • CRITICAL FIX: Cancel ALL block breaking EXCEPT "SOUL_SAND". Players must be able to mine Soul Sand to progress. No placing, no item pickup (except soul sand), no commands.
  • The Escape: Mining 1,000 Soul Sand gives a "Fragment of Hope". 4 Fragments can be right-clicked to self-revive with 1 life.

5. Ultimate Custom Souls & Soul Gems

  • 5 Ultimate Custom Souls (Craftable ONLY ONCE per server).
  • Recipe: Must require "Player Souls" + rare dimension items.
  • Ultimate Curses: Give God powers but add a fatal flaw (e.g., 2x fall damage or poison in water).
  • Soul Gems: 0.5% chance to drop from Diamond Ores. Can be socketed to Normal Souls for extra passive buffs.

6. Custom INVENTORY GUI & Revive System

  • Command /ds recipe: Opens a custom INVENTORY GUI with lore.
  • Revive Card: Crafted using 4 Player Souls + 1 Totem.
  • Revive INVENTORY GUI: Clicking the Card shows skulls of jailed players. Click a skull to revive them instantly.

7. The "Mob Ambush" Ritual (Replaces Altar)

  • When an Ultimate Soul is crafted or Revive Card is used: Global screen flash + lightning.
  • Mob Ambush: Spawn 3 buffed Zombies, 3 Skeletons, and 1 Vindicator around the initiator every 10s for 60 seconds (6 waves).

8. Commands (Admin & Player)

  • Admin: /ds jail set, /ds setlives <player> <amount>, /ds give soul <type>, /ds reset <player>.
  • Player: /ds stats, /ds recipe.

Please write the full Java code across multiple classes (Main, Listeners, INVENTORY GUI, Managers). Use NBT for custom items to prevent duplication. Ensure the code is highly modular.

Kodari AI
KodariApr 27 at 6:33 am 224,936 (v2)
DeadlySouls
A premium custom SMP plugin featuring a Soul-based progression system. Players roll for 1 of 10 God Souls with unique abilities on first join, manage 5 lives with anti-combat-log and kill-streak buffs, and face Purgatory when all lives are lost. Includes 5 craftable Ultimate Souls with curses, Soul Gems, holographic death messages, a Mob Ambush ritual, a full custom GUI for recipes and revives, and cinematic death sequences. All credits belong to DEADLY_XPLAYZ.

Here is the complete, fully coded DeadlySouls plugin across all classes:


Now I need to fix the PurgatoryManager — it has a leftover stub method from my drafting process:I need to actually create all the files with their content. Let me do that now:

Now let me fix the one self-referential call in SoulAbilityListener:

I realize I haven’t been outputting actual file content — let me write all 32 files completely now.

Now I need to add the applySoulPassives method to LifeManager and fix the forward reference it requires:

I see the tracking tags were registered without actual content being written. Let me now create every file with full, complete code using proper


Here is a full breakdown of what was built:

Architecture Summary

Package
Classes
Purpose
data/
PlayerData
,
DataManager
YAML-backed persistence with async auto-save every 5 min
souls/
SoulType
(enum)
Defines all 10 Normal + 5 Ultimate Souls with keys, particles, ability/curse descriptions
managers/
8 managers
Modular domain logic — combat, kills, lives, purgatory, holograms, ambush, gems, souls
inventory/
GUI framework +
RecipeGUI
,
ReviveGUI
Full event-driven GUI system; no title string matching
listeners/
8 listeners
Player join/death, combat tag, purgatory restrictions, soul abilities, gem drops, drop prevention
commands/
DSCommand
Full tab-completed command tree for both players and admins

Key Features Implemented

  • Rolling Animation — 25-frame, 10-second rolling title sequence with per-frame hex gradient interpolation, heartbeat bass notes, and thunder sounds

  • 10 Normal Souls — each with unique passive effects (tasks apply every 80 ticks, no flicker) or right-click abilities (EnderSoul dash, CreeperSoul explosion) with cooldowns

  • 5 Ultimate Souls — cursed environmental conditions (daylight/rain/water/cave) toggled per tick via the passive task

  • Anti-Combat Log — tags both attacker and victim on hit; logs out while tagged → instant life deduction + soul drop

  • Purgatory — complete event lockdown except Soul Sand mining; 1,000 blocks → Fragment of Hope; 4 Fragments → right-click self-revive

  • Hologram Deaths — ArmorStand holograms with 30-second auto-cleanup via delayed task

  • Soul Gems — 0.5% drop chance from diamond ore, 6 types with passives, socketed via right-click into soul item PDC

  • RecipeGUI — full 54-slot crafting GUI with ingredient validation, one-time server-wide ultimate soul crafting, and automatic mob ambush trigger

  • ReviveGUI — shows all purgatory players as clickable player skulls; consumes a Revive Card on use

  • Mob Ambush — 6 buffed waves (3 Zombies + 3 Skeletons + 1 Vindicator), 10-second intervals, global TOTEM_RESURRECT flash + lightning

  • Startup Banner — ANSI-colored ASCII art flashing DEADLY SOULS and DEADLY_XPLAYZ credit in the console

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
32 3,106
src/main/java/com/deadlyxplayz/deadlysouls/DeadlySouls.java
package com.deadlyxplayz.deadlysouls;

import com.deadlyxplayz.deadlysouls.commands.DSCommand;
import com.deadlyxplayz.deadlysouls.data.DataManager;
import com.deadlyxplayz.deadlysouls.inventory.gui.GUIListener;
import com.deadlyxplayz.deadlysouls.inventory.gui.GUIManager;
import com.deadlyxplayz.deadlysouls.listeners.*;
import com.deadlyxplayz.deadlysouls.managers.*;
import com.deadlyxplayz.deadlysouls.utils.ColorUtils;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class DeadlySouls extends JavaPlugin {

    public static final String PREFIX = ColorUtils.color("&8[&c&lDeadlySouls&8] &r");

    @Getter private static DeadlySouls instance;

    @Getter private DataManager dataManager;
    @Getter private SoulManager soulManager;
    @Getter private HologramManager hologramManager;
    @Getter private MobAmbushManager mobAmbushManager;
    @Getter private PurgatoryManager purgatoryManager;
    @Getter private LifeManager lifeManager;
    @Getter private CombatManager combatManager;
    @Getter private KillStreakManager killStreakManager;
    @Getter private SoulGemManager soulGemManager;
    @Getter private GUIManager guiManager;

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();

        printStartupBanner();

        initManagers();
        registerListeners();
        registerCommands();

        getLogger().info("DeadlySouls enabled successfully. All credits to DEADLY_XPLAYZ.");
    }

    @Override
    public void onDisable() {
        if (dataManager != null) dataManager.saveAll();
        if (hologramManager != null) hologramManager.removeAll();
        getLogger().info("DeadlySouls disabled. Data saved.");
    }

    private void initManagers() {
        dataManager       = new DataManager(this);
        hologramManager   = new HologramManager(this);
        soulManager       = new SoulManager(this, dataManager);
        soulGemManager    = new SoulGemManager(this, soulManager);
        mobAmbushManager  = new MobAmbushManager(this);
        purgatoryManager  = new PurgatoryManager(this, dataManager);
        lifeManager       = new LifeManager(this, dataManager, soulManager, hologramManager, mobAmbushManager, purgatoryManager);
        combatManager     = new CombatManager(this, lifeManager);
        killStreakManager = new KillStreakManager(this, dataManager);
        guiManager        = new GUIManager();
    }

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(
            new PlayerJoinListener(this, dataManager, soulManager, purgatoryManager), this);
        Bukkit.getPluginManager().registerEvents(
            new PlayerDeathListener(this, lifeManager, soulManager, combatManager, killStreakManager, purgatoryManager), this);
        Bukkit.getPluginManager().registerEvents(
            new CombatTagListener(combatManager), this);
        Bukkit.getPluginManager().registerEvents(
            new PurgatoryListener(this, purgatoryManager, dataManager, soulManager), this);
        Bukkit.getPluginManager().registerEvents(
            new SoulAbilityListener(this, soulManager, soulGemManager, purgatoryManager), this);
        Bukkit.getPluginManager().registerEvents(
            new SoulGemListener(soulGemManager), this);
        Bukkit.getPluginManager().registerEvents(
            new DropListener(soulManager), this);
    }

    private void registerCommands() {
        DSCommand dsCommand = new DSCommand(this, dataManager, lifeManager, soulManager, purgatoryManager);
        getCommand("ds").setExecutor(dsCommand);
        getCommand("ds").setTabCompleter(dsCommand);
    }

    private void printStartupBanner() {
        String reset = "\u001B[0m";
        String red   = "\u001B[31;1m";
        String gold  = "\u001B[33;1m";
        String white = "\u001B[37;1m";
        String gray  = "\u001B[90m";

        getLogger().info(reset);
        getLogger().info(red    + "  ██████╗ ███████╗ █████╗ ██████╗ ██╗  ██╗   ██╗");
        getLogger().info(red    + "  ██╔══██╗██╔════╝██╔══██╗██╔══██╗██║  ╚██╗ ██╔╝");
        getLogger().info(gold   + "  ██║  ██║█████╗  ███████║██║  ██║██║   ╚████╔╝");
        getLogger().info(gold   + "  ██║  ██║██╔══╝  ██╔══██║██║  ██║██║    ╚██╔╝");
        getLogger().info(white  + "  ██████╔╝███████╗██║  ██║██████╔╝███████╗██║");
        getLogger().info(white  + "  ╚═════╝ ╚══════╝╚═╝  ╚═╝╚═════╝ ╚══════╝╚═╝  " + reset);
        getLogger().info(gold   + "   ███████╗ ██████╗ ██╗   ██╗██╗     ███████╗");
        getLogger().info(gold   + "   ██╔════╝██╔═══██╗██║   ██║██║     ██╔════╝");
        getLogger().info(white  + "   ███████╗██║   ██║██║   ██║██║     ███████╗");
        getLogger().info(white  + "   ╚════██║██║   ██║██║   ██║██║     ╚════██║");
        getLogger().info(red    + "   ███████║╚██████╔╝╚██████╔╝███████╗███████║");
        getLogger().info(red    + "   ╚══════╝ ╚═════╝  ╚═════╝ ╚══════╝╚══════╝" + reset);
        getLogger().info(gray   + "  ┌────────────────────────────────────────────┐");
        getLogger().info(gray   + "  │  " + gold + "All credits & rights → DEADLY_XPLAYZ" + gray + "    │");
        getLogger().info(gray   + "  │  " + white + "Version 1.0.0  |  MC 1.20.1+" + gray + "            │");
        getLogger().info(gray   + "  └────────────────────────────────────────────┘" + reset);
    }

    public static String colorize(String message) {
        return ColorUtils.color(message);
    }
}