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:20 pm 3
MaceUpgradeSMP
MaceUpgradeSMP is a Paper plugin for Minecraft 1.21+ that gives every player a custom, unlosable Mace on first join. PvP kills with the Mace grant upgrade levels, unlocking themed tiers like Thunder, Shadow, Vampire, and God Mace with unique abilities, particles, and sounds. Features persistent player data via players.yml, configurable abilities in config.yml, anti-loss protection on death, and admin commands for managing levels and stats.
  1. Create the Paper/Java 21 Gradle project and plugin metadata.

  2. Add persistent player data, configurable level/ability handling, and custom-model Mace item creation.

  3. Implement join, combat, upgrade, death recovery, anti-loss, and effect listeners.

  4. Add /mace commands, permissions, and production-oriented default configuration.

Implemented the complete MaceSMP Paper plugin project.

  • Paper 1.21.x / Java 21 Gradle setup

  • Persistent players.yml data storage

  • Custom owner-bound Mace with:

    • Level-based names

    • Custom model data

    • Modern item model support

    • Persistent metadata

  • First-join Mace distribution

  • Anti-loss death recovery and despawn protection

  • Owner-only pickup protection

  • Mace-only PvP kill tracking

  • Configurable upgrade progression up to level 10

  • Level abilities:

    • Strength

    • Thunder

    • Shadow Slowness

    • Vampire healing

    • Berserker buffs

    • God effects

  • Configurable sounds, particles, cooldowns, chances, damage, messages, and models

  • Commands:

    • /mace

    • /mace give <player>

    • /mace level <player> <level>

    • /mace reload

    • /mace stats

  • Permissions:

    • mace.admin

    • mace.give

    • mace.level

    • mace.reload

    • mace.stats

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

import com.kodari.macesmp.command.MaceCommand;
import com.kodari.macesmp.data.PlayerDataStore;
import com.kodari.macesmp.listener.MaceListener;
import com.kodari.macesmp.service.MaceConfig;
import com.kodari.macesmp.service.MaceService;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class MacePlugin extends JavaPlugin {
    private MaceConfig maceConfig;
    private PlayerDataStore dataStore;
    private MaceService maceService;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        dataStore = new PlayerDataStore(this);
        dataStore.load();
        maceConfig = new MaceConfig(this);
        maceService = new MaceService(this);

        MaceListener listener = new MaceListener(this);
        Bukkit.getPluginManager().registerEvents(listener, this);

        MaceCommand command = new MaceCommand(this);
        if (getCommand("mace") != null) {
            getCommand("mace").setExecutor(command);
            getCommand("mace").setTabCompleter(command);
        }
    }

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

    public void reloadPluginConfig() {
        reloadConfig();
    }

    public MaceConfig getMaceConfig() {
        return maceConfig;
    }

    public PlayerDataStore getDataStore() {
        return dataStore;
    }

    public MaceService getMaceService() {
        return maceService;
    }
}