Yashraj

I want a Soul Stealer Plugin for my Minecraft server with the following features:

5 Souls Per Player: Every player starts with 5 souls.

Soul Stealing Mechanic: Whenever a player kills another player, they steal 1 soul from the defeated player, and that soul is transferred to the killer.

Special Abilities / Soul Gems: Whenever a player gains a soul, they receive a special gem or item that grants a random ability or potion effect.

Possible Abilities:

Regeneration Strength Speed Fire Resistance Other balanced and useful abilities.

Ability Activation: Each gem should provide its own special ability, which players can activate or use.

Soul Limit: A player can have a maximum of 5 souls.

Important: I want this plugin to be balanced, unique, and fun for PvP gameplay. The soul-stealing system should work smoothly, and the gems should have proper effects with a visually appealing design.

Kodari AI
KodariNov 10 at 8:17 pm 1
SoulStealer
A PvP-focused Minecraft plugin where players start with 5 souls. When a player kills another, they steal 1 soul from the victim, up to a maximum of 5. Each stolen soul grants the killer a random Soul Gem item with a unique ability: Regeneration, Strength, Speed, Fire Resistance, or other balanced effects. Gems are visually distinct with glowing enchant effects and custom lore. Players activate gems by right-clicking to consume them and receive a timed potion effect. The plugin tracks soul counts per player, displays current souls in the action bar, and prevents soul theft when the victim has zero souls. Includes configurable messages, cooldowns, and balanced effect durations for engaging PvP gameplay.
  • Implement persistent souls with a 5-soul starting balance, a 5-soul cap, and PvP transfer rules.

  • Add consumable, randomly assigned ability gems with balanced effects, cooldowns, and custom visuals.

  • Register join/death handling and /souls, then provide the plugin’s Gradle and YAML setup.

Created the SoulStealer plugin. Players start with 5 souls; a PvP kill transfers one only if the killer is below the 5-soul cap and the defeated player has souls. Successful steals award a randomly selected, single-use ability gem with a 15-second activation cooldown.

Souls persist in souls.yml. Players can check their balance with /souls; admins can check an online player’s with /souls <player>. Starting souls, maximum souls, and gem cooldown are configurable.

Yashraj
📎 1 file 1,486 chars
📄
pasted-code-1794341900832.txt
txt 40 lines
▶
Permanent Death & Soul Revival System

When a Player Loses All 5 Souls:

When a player's soul count reaches 0, they should automatically be banned from the server.
Display a custom ban message: "Your soul has been completely consumed. You have been banished from Crown SMP!"
The player should not be able to rejoin until they are revived.

Soul Revival Recipe (Unban System)

Create a special craftable item called Revival Crystal that allows banned players to return to the server.

When another player crafts and uses the Revival Crystal, it should revive one banned player and restore all 5 of their souls.

Custom Crafting Recipe

1 Nether Star
4 Diamonds
2 Totems of Undying
1 Heart of the Sea
1 Golden Apple

The item should be called Revival Crystal, with a unique texture, glowing enchantment effect, and custom lore.

Revival Process:

A player crafts the Revival Crystal.
They use it to select or enter the username of a banned player.
The system checks whether that player is banned specifically due to losing all their souls.
If valid, the banned player gets unbanned and receives all 5 souls.
The Revival Crystal is consumed after successful use.

Important Rules:

Only Soul Stealer bans can be reversed using this item.
Normal staff bans must not be affected.
Add a confirmation message before revival.
Log every revival in the server console.

Make the revival system balanced, challenging, and suitable for Crown SMP PvP gameplay.
Kodari AI
KodariNov 10 at 8:21 pm 2

Plan:

  1. Inspect the existing soul tracking, death handling, commands, and plugin setup.

  2. Add Soul Stealer-only permanent-death bans and a Revival Crystal crafting/use flow with confirmation.

  3. Persist revival eligibility, log successful revivals, and configure the recipe and messages.

Added the permanent-death and revival system:

  • A player who loses their last soul is banned with the requested message. Soul Stealer records these bans separately, and /revive <username> only accepts players currently banned by this system—not staff bans.

  • The crystal recipe uses 4 diamonds, 2 totems, a nether star, heart of the sea, and golden apple. Hold the crystal, enter /revive <username>, then confirm with /revive confirm within 30 seconds. It’s consumed only after a successful revival; the player returns with 5 souls, and the revival is logged.

  • The crystal has custom name, lore, and enchantment glint. Its unique texture can’t be created while Kodari Studio is disabled; enable it in this project’s Settings → Generation to make one.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 784
src/main/java/com/kodari/soulstealer/SoulStealerPlugin.java
package com.kodari.soulstealer;

import com.kodari.soulstealer.command.SoulsCommand;
import com.kodari.soulstealer.command.ReviveCommand;
import com.kodari.soulstealer.listener.SoulStealerListener;
import com.kodari.soulstealer.soul.SoulManager;
import com.kodari.soulstealer.soul.SoulGemManager;
import com.kodari.soulstealer.soul.SoulRevivalManager;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Objects;

public final class SoulStealerPlugin extends JavaPlugin {
    private SoulManager soulManager;
    private SoulRevivalManager soulRevivalManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.soulManager = new SoulManager(this);
        SoulGemManager soulGemManager = new SoulGemManager(this);
        this.soulRevivalManager = new SoulRevivalManager(this, soulManager);
        soulRevivalManager.registerRecipe();

        Bukkit.getPluginManager().registerEvents(
                new SoulStealerListener(this, soulManager, soulGemManager, soulRevivalManager), this);
        Objects.requireNonNull(getCommand("souls")).setExecutor(new SoulsCommand(soulManager));
        Objects.requireNonNull(getCommand("revive")).setExecutor(new ReviveCommand(soulRevivalManager));

        for (Player player : Bukkit.getOnlinePlayers()) {
            soulManager.initializePlayer(player);
        }
    }

    @Override
    public void onDisable() {
        if (soulManager != null) {
            soulManager.save();
        }
        if (soulRevivalManager != null) {
            soulRevivalManager.save();
        }
    }
}