charan081048

Make the plugin

1 image attached
Kodari AI
KodariJul 24 at 7:49 am 12
  1. Inspect the existing weapon framework and implement the image’s weapon behaviors within it.

  2. Complete command, item, cooldown, and event wiring so the plugin builds and works in-game.

  3. Add only the required resource/config changes, then leave the project ready to compile.

Implemented the LegendaryWeapons plugin:

  • Added all seven legendary weapons and their abilities.

  • Added cooldown handling, custom item metadata, lore, and weapon identification.

  • Implemented Titan Leap, Thunder Strike, Shadow Step, Ice Prison, Phoenix Shot, Hurricane Spin, and Void Rift.

  • Added Phoenix arrow impact explosions and fire damage.

  • Added combat passives for Thunder Blade, Shadow Dagger, and Void Scythe.

  • Prevented off-hand interaction from activating abilities twice.

  • Added the required XSeries dependency to build.gradle.

  • /weapons list and /weapons give <player> <weapon> [amount] are wired through plugin.yml.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 813
src/main/java/com/kodari/legendaryweapons/LegendaryWeaponsPlugin.java
package com.kodari.legendaryweapons;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class LegendaryWeaponsPlugin extends JavaPlugin {
    private WeaponManager weaponManager;
    private CooldownManager cooldownManager;
    private AbilityService abilityService;

    @Override
    public void onEnable() {
        weaponManager = new WeaponManager(this);
        cooldownManager = new CooldownManager();
        abilityService = new AbilityService(this, weaponManager, cooldownManager);

        getServer().getPluginManager().registerEvents(
                new WeaponListener(weaponManager, abilityService), this);

        PluginCommand command = getCommand("weapons");
        if (command != null) {
            WeaponsCommand weaponsCommand = new WeaponsCommand(weaponManager);
            command.setExecutor(weaponsCommand);
            command.setTabCompleter(weaponsCommand);
        }

        getLogger().info("LegendaryWeapons enabled with seven custom weapons.");
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }

    public CooldownManager getCooldownManager() {
        return cooldownManager;
    }

    public AbilityService getAbilityService() {
        return abilityService;
    }
}