kryzix01
  1. Mace on SMP Join
  • When a player joins the SMP for the first time, automatically give them a custom Mace.
  • The Mace should have a unique custom name and custom texture/model.
  • The Mace must not be removed when the player dies.
  • The Mace must not despawn.
  • The Mace should remain in the player's inventory or be safely returned after death.
  1. Mace Kill Upgrade System

When a player kills another player using the custom Mace:

  • The killer's Mace gains 1 Upgrade Level.
  • Display a message such as:

"⚔ MACE UPGRADED! Level 2"

  • Play a custom upgrade sound and particle effect.
  • The victim's Mace is NOT deleted.
  • The victim's Mace is NOT banned.
  • The victim keeps their own Mace and can continue playing.
  1. Custom Mace Levels

Example progression:

Level 1 — Starter Mace

  • Normal Mace abilities.

Level 2 — Power Mace

  • Increased attack power.
  • Small Strength effect after a successful hit.

Level 3 — Thunder Mace

  • Chance to summon lightning when hitting a player.

Level 4 — Shadow Mace

  • Chance to give the enemy Slowness.
  • Dark particle effects.

Level 5 — Vampire Mace

  • Successful hits restore a small amount of the user's health.

Level 6 — Berserker Mace

  • Temporary Speed and Strength after killing a player.

Level 7 — God Mace

  • Powerful custom effects.
  • Special particles.
  • Custom kill animation/effect.
  1. Custom Name

Use a level-based name such as:

  • "§6⚔ Mace of Power §7[Lv.1]"
  • "§e⚡ Thunder Mace §7[Lv.3]"
  • "§5☠ Shadow Mace §7[Lv.4]"
  • "§c❤ Vampire Mace §7[Lv.5]"
  • "§d✦ God Mace §7[Lv.7]"

The name should automatically update when the Mace levels up.

  1. Custom Texture / Model

Support Minecraft's modern CustomModelData / Item Model system.

Make the Mace visually different from the normal Minecraft Mace.

The plugin should allow different models for different levels:

"mace_level_1" "mace_level_2" "mace_level_3" "mace_level_4" "mace_level_5" "mace_level_6" "mace_level_7"

  1. Anti-Loss System

The custom Mace must NEVER be permanently lost because of PvP death.

If a player dies:

  • Keep their Mace.
  • Do not allow it to despawn.
  • Do not allow another player to permanently take it.
  • Restore the Mace automatically if necessary.

The victim's Mace level must remain unchanged.

  1. Kill Tracking

Track:

  • Player kills
  • Mace kills
  • Current Mace level
  • Mace owner
  • Upgrade progress

Store player data so it survives server restarts.

Use a persistent database/file such as:

"players.yml"

Example:

players:

PlayerName: mace-level: 5 mace-kills: 12

  1. Commands

Add:

"/mace"

  • Shows the player's current Mace level and abilities.

"/mace give <player>"

  • Gives a custom Mace.

"/mace level <player> <level>"

  • Changes a player's Mace level.

"/mace reload"

  • Reloads the configuration.

"/mace stats"

  • Shows Mace statistics.
  1. Permissions

mace.admin mace.give mace.level mace.reload mace.stats

  1. Configuration

Create a fully configurable "config.yml" where the server owner can change:

  • Mace names
  • Mace levels
  • Kill requirements
  • Abilities
  • Damage
  • Potion effects
  • Ability chances
  • Cooldowns
  • Particles
  • Sounds
  • Messages
  • Custom model data
  • Anti-loss settings

Example:

mace: starter-level: 1 upgrade-per-kill: 1 max-level: 10

anti-loss: enabled: true keep-on-death: true prevent-despawn: true

abilities: thunder: enabled: true chance: 25 cooldown: 10

vampire: enabled: true heal: 2.0

  1. Important PvP Rule

Only a kill made using the custom Mace should count toward a Mace upgrade.

If the player kills someone with:

  • Sword
  • Bow
  • Axe
  • Other weapon
  • Fall damage
  • Lava
  • Any other method

the Mace should NOT upgrade.

  1. Compatibility

Build the plugin for modern Paper Minecraft servers.

Target:

  • Minecraft 1.21.x+
  • Paper API
  • Java 21+

Use Adventure API for modern messages and effects.

Plugin Goal

The final result should feel like a custom Mace Upgrade SMP system where every player receives a special Mace, PvP kills upgrade the killer's Mace, and nobody permanently loses their Mace after dying.

The plugin must be optimized, configurable, persistent across restarts, and ready for a production SMP server.

Kodari AI
KodariAug 7 at 12:26 pm 2
MaceUpgradeSMP
MaceUpgradeSMP is a Paper plugin for Minecraft 1.21+ that grants every player a unique, persistent custom Mace on first join. PvP kills with the Mace increment its level through seven themed tiers (Power, Thunder, Shadow, Vampire, Berserker, God), each with distinct abilities, particles, and sounds. The plugin features a robust anti-loss system ensuring the Mace survives death, a players.yml persistence system, configurable config.yml, and commands like /mace give, level, stats, and reload. Only Mace-caused kills count toward upgrades, preserving fair progression.
  1. Create the Java 21 Paper plugin build and metadata.

  2. Add persistent player data, custom Mace identity/model handling, and anti-loss protection.

  3. Add configurable combat abilities, kill-based upgrades, effects, and Adventure messaging.

  4. Add /mace commands, permissions, and production-oriented defaults in config.yml.

  1. Created the Java 21 Paper plugin project with Gradle, plugin.yml, permissions, and command registration.

  2. Added persistent players.yml storage for Mace levels, player kills, Mace kills, and upgrade progress.

  3. Added custom Mace identity using PersistentDataContainer, CustomModelData, configurable item models, level-based names, and lore.

  4. Implemented anti-loss protection for death drops, despawning, player pickup, dropping, and respawn restoration.

  5. Added configurable Mace combat abilities from Levels 2–7+, including Strength, lightning, Slowness, Vampire healing, Berserker effects, God effects, particles, sounds, and cooldowns.

  6. Added /mace, /mace give, /mace level, /mace reload, and /mace stats.

  7. Added configurable progression and messages in config.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 1,036
src/main/java/com/kodari/macesmp/MaceSmpPlugin.java
package com.kodari.macesmp;

import com.kodari.macesmp.command.MaceCommand;
import com.kodari.macesmp.combat.MaceListener;
import com.kodari.macesmp.data.PlayerDataStore;
import com.kodari.macesmp.mace.AbilityManager;
import com.kodari.macesmp.mace.MaceManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class MaceSmpPlugin extends JavaPlugin {
    private PlayerDataStore playerDataStore;
    private MaceManager maceManager;
    private AbilityManager abilityManager;

    @Override
    public void onEnable() {
        this.playerDataStore = new PlayerDataStore(this);
        this.maceManager = new MaceManager(this);
        this.abilityManager = new AbilityManager(this);

        Bukkit.getPluginManager().registerEvents(
                new MaceListener(this, playerDataStore, maceManager, abilityManager), this);

        MaceCommand command = new MaceCommand(this, playerDataStore, maceManager);
        getCommand("mace").setExecutor(command);
        getCommand("mace").setTabCompleter(command);
    }

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

    public PlayerDataStore getPlayerDataStore() {
        return playerDataStore;
    }

    public MaceManager getMaceManager() {
        return maceManager;
    }

    public AbilityManager getAbilityManager() {
        return abilityManager;
    }
}