rajan690899
πŸ“Ž 1 file 4,294 chars
πŸ“„
pasted-code-1790323352123.txt
txt 170 lines
β–Ά
Core system
Every player receives a unique weapon when they first join.

The weapon is permanently bound to that player.

It starts at Level 1.

Kills grant weapon XP.

XP requirements increase progressively, for example:

Level 1 β†’ 2: 10 kills

Level 2 β†’ 3: 25 kills

Level 3 β†’ 4: 50 kills

Level 4 β†’ 5: 90 kills

Level 5 β†’ 6: 150 kills

Later levels become increasingly difficult.

Every level improves the weapon:

damage/stat increases

stronger existing abilities

reduced cooldowns

additional effects

entirely new abilities at milestone levels

The weapon remains with the player after death.

If the player dies 3 times consecutively without getting a kill, the weapon is removed/reset according to the configured punishment.

Getting a kill resets the consecutive-death counter.

The weapon cannot simply be dropped, traded, placed in a chest, or transferred to another player.

If the player somehow loses it, the plugin can restore it automatically.

Player weapon data persists through server restarts.

Example weapon
I could make the first weapon something like:

γ€ŒVOIDREAVER」
Soulbound Weapon β€” Level 1

Level	Ability progression
1	Void Slash
2	Void Slash deals bonus damage
3	Short-range knockback pulse
4	Killing an enemy grants Speed
5	Void Dash
6	Void Slash creates a temporary rift
7	Lifesteal on ability hit
8	Dash leaves a damaging trail
9	Shadow clones appear briefly
10	Ultimate: Rift Execution

The actual abilities can be completely different depending on the weapon type.

Resource pack
The resource pack would give the weapon its own visual identity rather than looking like an ordinary Minecraft sword.

For example:

VOIDREAVER

Custom 3D sword model

Dark purple/black blade

Animated-looking emissive accents

Unique inventory texture

Different appearance as the weapon levels up

Custom model data/item-model mapping

Ability-themed particles and sounds

Custom weapon name/lore

The plugin would automatically send the resource-pack information to players when they join.

Architecture
I'd structure the project roughly like:

UniqueWeapons/
β”œβ”€β”€ src/main/java/
β”‚   └── com.example.uniqueweapons/
β”‚       β”œβ”€β”€ UniqueWeaponsPlugin.java
β”‚       β”œβ”€β”€ weapon/
β”‚       β”‚   β”œβ”€β”€ Weapon.java
β”‚       β”‚   β”œβ”€β”€ WeaponManager.java
β”‚       β”‚   β”œβ”€β”€ WeaponType.java
β”‚       β”‚   └── WeaponAbility.java
β”‚       β”œβ”€β”€ level/
β”‚       β”‚   β”œβ”€β”€ LevelManager.java
β”‚       β”‚   └── LevelProgression.java
β”‚       β”œβ”€β”€ listener/
β”‚       β”‚   β”œβ”€β”€ PlayerJoinListener.java
β”‚       β”‚   β”œβ”€β”€ PlayerDeathListener.java
β”‚       β”‚   β”œβ”€β”€ PlayerKillListener.java
β”‚       β”‚   └── WeaponProtectionListener.java
β”‚       β”œβ”€β”€ command/
β”‚       β”‚   └── WeaponCommand.java
β”‚       β”œβ”€β”€ storage/
β”‚       β”‚   └── PlayerDataManager.java
β”‚       └── ability/
β”‚           β”œβ”€β”€ VoidSlash.java
β”‚           β”œβ”€β”€ VoidDash.java
β”‚           └── RiftExecution.java
β”œβ”€β”€ src/main/resources/
β”‚   β”œβ”€β”€ plugin.yml
β”‚   └── config.yml
└── resourcepack/
    β”œβ”€β”€ pack.mcmeta
    └── assets/

Important design choice
I would not make the weapon simply an ordinary sword with a custom name. The plugin should identify it using persistent item data, so players can't create a fake "VOIDREAVER" with an anvil or rename command and obtain its powers.

The weapon can carry data such as:

weapon_id = 
weapon_type = VOIDREAVER
weapon_level = 7
weapon_xp = 342

The server remains authoritative over all of this.

Admin commands
I'd also include commands such as:

/uw give 
/uw remove 
/uw level  
/uw xp  
/uw reset 
/uw info 
/uw reload

and permissions such as:

uniqueweapons.admin
uniqueweapons.give
uniqueweapons.reload

One thing I'd change from your wording
For the 3 deaths in a row, I'd make the default behavior:

3 consecutive deaths without a kill β†’ weapon is destroyed and the player receives a new Level 1 weapon.

That prevents a player from permanently losing access to the entire system while still making dying repeatedly meaningful.

We can also make this configurable:

death-streak:
  enabled: true
  deaths-required: 3
  reset-on-kill: true
  punishment: NEW_LEVEL_ONE
Kodari AI
KodariSep 25 at 8:09 am 2
SoulboundWeapons
A Minecraft plugin granting every player a unique soulbound weapon that levels up through kills. Weapons are permanently bound, cannot be traded or dropped, and persist across deaths and restarts. Progressive leveling system with increasing XP requirements unlocks new abilities, stat boosts, and visual changes. Features configurable death-streak punishment that resets weapons to Level 1 after three consecutive deaths without kills. Includes admin commands for managing player weapons, persistent data storage, custom resource pack support, and a GUI-based management interface for viewing weapon information and progression.

I’ll create a Paper plugin with persistent soulbound weapons, kill-based leveling, ability progression, death-streak resets, protection, and admin commands.

Created UniqueWeapons for Paper 1.21.4 with persistent, owner-bound weapons, kill XP and configurable level requirements, level-scaled damage, abilities, automatic restoration, and a configurable three-death reset.

Admin commands: /uw give|remove|level|xp|reset|info <player> and /uw reload. Targets must be online. The resource-pack URL is configurable and sent on join; you’ll need to host and provide the actual pack assets.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
11 946
src/main/java/com/example/uniqueweapons/UniqueWeaponsPlugin.java
package com.example.uniqueweapons;

import com.example.uniqueweapons.command.WeaponCommand;
import com.example.uniqueweapons.level.LevelProgression;
import com.example.uniqueweapons.listener.WeaponListener;
import com.example.uniqueweapons.storage.PlayerDataManager;
import com.example.uniqueweapons.weapon.WeaponManager;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class UniqueWeaponsPlugin extends JavaPlugin {
    private PlayerDataManager playerDataManager;
    private LevelProgression levelProgression;
    private WeaponManager weaponManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        playerDataManager = new PlayerDataManager(this);
        levelProgression = new LevelProgression(this);
        weaponManager = new WeaponManager(this, playerDataManager, levelProgression);

        Bukkit.getPluginManager().registerEvents(new WeaponListener(this, weaponManager), this);
        getCommand("uw").setExecutor(new WeaponCommand(this, weaponManager, playerDataManager, levelProgression));

        Bukkit.getScheduler().runTaskTimer(this, () -> {
            for (Player player : Bukkit.getOnlinePlayers()) {
                weaponManager.ensureWeapon(player);
            }
        }, 100L, 100L);
    }

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

    public PlayerDataManager getPlayerDataManager() {
        return playerDataManager;
    }

    public LevelProgression getLevelProgression() {
        return levelProgression;
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }
}