V8 R3v1n

When someone joins they get random legendary weapons with special abilities

Kodari AI
KodariAug 30 at 5:39 am 2
RandomLegendaryGear
RandomLegendaryGear is a Minecraft plugin that grants players random legendary weapons with unique special abilities upon joining the server. Each weapon features custom enchantments, particle effects, and cooldown-based active powers such as fire bursts, lightning strikes, or healing waves. The plugin includes configurable drop rates, ability balancing, and a cooldown system to ensure fair gameplay. Players receive their legendary item automatically on first join or every login based on configuration, with optional chat announcements and visual effects to enhance the experience. The plugin supports multiple weapon types and ability combinations for variety.

I’ll create a complete Paper plugin with configurable legendary weapons, join rewards, three distinct abilities, cooldowns, and an admin command.

Created the LegendaryWeapons Paper plugin from scratch.

Features included:

  • Random legendary weapon awarded on join

  • Configurable weapons, names, lore, enchantments, abilities, and cooldowns

  • Flameblade with Flameburst

  • Stormbow with lightning-triggering arrows

  • Frosthammer with area damage and slowness

  • /legendary give <player> <weapon>

  • /legendary list

  • /legendary reload

  • Admin permission: legendaryweapons.admin

  • Persistent item identification using PersistentDataContainer

  • XSeries support for materials, enchantments, and potion effects

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

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

public final class LegendaryWeaponsPlugin extends JavaPlugin {

    private WeaponManager weaponManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        weaponManager = new WeaponManager(this);
        weaponManager.load();

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

        PluginCommand command = getCommand("legendary");
        if (command != null) {
            LegendaryCommand legendaryCommand = new LegendaryCommand(this, weaponManager);
            command.setExecutor(legendaryCommand);
            command.setTabCompleter(legendaryCommand);
        }
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }
}