alphafisher12333333

create a mod where you spawn in with a normal mace and whenever you kill someone it levels the mace up, with the last level being "the god mace" (5 kills).

Kodari AI
KodariMay 16 at 3:26 am 6,835 (v2)

I’ll create a PvP progression plugin where a mace evolves through kills.

GodMace
A PvP progression plugin where players spawn with a mace that evolves through 5 levels as they accumulate kills. Each kill upgrades the mace with enhanced enchantments and a new title, culminating in "The God Mace" at 5 kills. Features persistent kill tracking using item data, automatic mace distribution on spawn, and fully configurable level progression with custom names and enchantments.

Done! Created GodMace - a kill-streak mace evolution system with 6 levels (0-5 kills), configurable enchantments and names, persistent kill tracking on the item, and automatic distribution on join/respawn.

alphafisher12333333

can you make this where you spawn in with a normal mace and whenever you die and respawn?

Kodari AI
KodariMay 16 at 3:33 am 2,187 (v2)

I’ll modify the plugin so that the mace resets to level 0 (normal mace) whenever you die and respawn.

Done! Modified the plugin so that every time you die and respawn, you get a fresh level 0 mace. Your kill progress now resets on death, so each life is a fresh attempt to reach “The God Mace” at 5 kills.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 448
src/main/java/com/godmace/GodMace.java
package com.godmace;

import com.godmace.listener.PlayerListener;
import com.godmace.manager.MaceManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class GodMace extends JavaPlugin {

    private MaceManager maceManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.maceManager = new MaceManager(this);
        
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        
        getCommand("godmace").setExecutor(new GodMaceCommand(this));
        
        getLogger().info("GodMace has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("GodMace has been disabled!");
    }

    public void reload() {
        reloadConfig();
        this.maceManager = new MaceManager(this);
    }
}