eternalvolt

Create a Minecraft SMP plugin with the following mechanics:

Swift System Every player starts with Swift 0 (no speed effect).

Each player kill increases their Swift level by 1.

Swift levels progress as:

Swift I Swift II Swift III Swift IV Swift V Each Swift level grants the corresponding Speed effect level.

When a player reaches Swift V, they receive a Book of Speed in their inventory.

Legendary Ascension Upon reaching Swift V, the player is randomly assigned ONE Legendary Weapon:

  1. Vampire Blade (Netherite Sword)

Ability Keybind: V Transforms the player into a bat for 5 seconds.

The player gains flight and increased mobility while transformed.

Ability Cooldown: 10 seconds.

  1. Skybreaker (Mace)

Ability Keybind: V Launches the player approximately 20 blocks into the air.

Intended for mobility and powerful mace attacks.

Ability Cooldown: 10 seconds.

  1. Frost Axe (Axe)

Ability Keybind: V Throws a magical axe projectile.

Any player hit by the projectile is frozen/slowed for a short duration.

Ability Cooldown: 10 seconds.

Chat & UI Features Cooldown countdowns must be shown in chat.

Broadcast a message when a player reaches Swift V.

Broadcast the Legendary Weapon the player receives.

Notify players in chat when abilities are activated.

Notify players in chat when abilities become available again.

Rules Players can only possess one Legendary Weapon at a time.

All legendary abilities are activated using the V key.

Plugin must support multiplayer SMP gameplay.

Abilities should be optimized and balanced for PvP.

Swift levels are retained until death (configurable).

Kodari AI
KodariJun 7 at 2:25 pm 19

I’ll create a competitive SMP plugin with a progressive speed system and legendary weapons.

SwiftLegends
A competitive SMP plugin featuring a progressive speed system and legendary weapons. Players earn Swift levels through kills, unlocking speed effects up to Swift V. At max level, players receive one of three legendary weapons with unique abilities: Vampire Blade (bat transformation), Skybreaker (aerial launch), or Frost Axe (freezing projectile). All abilities use right-click activation with 10-second cooldowns and chat notifications.

SwiftLegends is ready! Here’s what I’ve created:

Core Features:

✅ Swift System - Players earn Swift I-V through kills, each level grants Speed effect
✅ Legendary Weapons - Random weapon at Swift V: Vampire Blade, Skybreaker, or Frost Axe
✅ Book of Speed - Given when reaching Swift V with weapon info
✅ Ability System - Right-click legendary weapons to activate (Note: Minecraft doesn’t support custom “V” keybinds server-side, so I used right-click)
✅ Cooldown System - 10-second cooldowns with chat notifications
✅ Death Mechanics - Swift levels reset on death (configurable)
✅ Persistence - Player data saved to YAML files

Legendary Abilities:

  • Vampire Blade: Transform into bat form with flight + invisibility for 5s

  • Skybreaker: Launch 20 blocks upward for aerial mace attacks

  • Frost Axe: Throw freezing projectile that slows enemies for 3s

Commands:

  • /sl or /swift - Show your stats

  • /sl stats - Show your stats

  • /sl reload - Reload config (admin)

  • /sl reset <player> - Reset player data (admin)

Config:

Everything is configurable: cooldowns, durations, damage, speed levels, death reset behavior, and all messages.

Important Note: Minecraft servers cannot detect custom keybinds like “V” without client-side mods. I’ve implemented abilities with right-click on the legendary weapon, which is the standard vanilla-compatible approach.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
19 1,071
src/main/java/com/swiftlegends/SwiftLegends.java
package com.swiftlegends;

import com.swiftlegends.data.PlayerDataManager;
import com.swiftlegends.legendary.LegendaryAbilityHandler;
import com.swiftlegends.listeners.AbilityActivationListener;
import com.swiftlegends.listeners.LegendaryWeaponListener;
import com.swiftlegends.listeners.PlayerJoinQuitListener;
import com.swiftlegends.listeners.PlayerKillListener;
import com.swiftlegends.managers.LegendaryWeaponManager;
import com.swiftlegends.managers.SwiftManager;
import com.swiftlegends.utils.MessageUtil;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SwiftLegends extends JavaPlugin {
    
    private PlayerDataManager playerDataManager;
    private SwiftManager swiftManager;
    private LegendaryWeaponManager legendaryWeaponManager;
    private LegendaryAbilityHandler abilityHandler;
    private MessageUtil messageUtil;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.messageUtil = new MessageUtil(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.swiftManager = new SwiftManager(this);
        this.legendaryWeaponManager = new LegendaryWeaponManager(this);
        this.abilityHandler = new LegendaryAbilityHandler(this);
        
        registerListeners();
        
        getLogger().info("SwiftLegends has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (playerDataManager != null) {
            playerDataManager.saveAll();
        }
        
        getLogger().info("SwiftLegends has been disabled!");
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerKillListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerJoinQuitListener(this), this);
        Bukkit.getPluginManager().registerEvents(new AbilityActivationListener(this), this);
        Bukkit.getPluginManager().registerEvents(new LegendaryWeaponListener(this), this);
    }
    
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length == 0) {
            if (sender instanceof Player) {
                Player player = (Player) sender;
                swiftManager.showStats(player);
            } else {
                sender.sendMessage(messageUtil.format("&cThis command can only be used by players!"));
            }
            return true;
        }
        
        String subCommand = args[0].toLowerCase();
        
        switch (subCommand) {
            case "reload":
                if (!sender.hasPermission("swiftlegends.admin")) {
                    sender.sendMessage(messageUtil.getMessage("no-permission"));
                    return true;
                }
                reloadConfig();
                messageUtil = new MessageUtil(this);
                sender.sendMessage(messageUtil.getMessage("config-reloaded"));
                return true;
                
            case "stats":
                if (sender instanceof Player) {
                    Player player = (Player) sender;
                    swiftManager.showStats(player);
                } else {
                    sender.sendMessage(messageUtil.format("&cThis command can only be used by players!"));
                }
                return true;
                
            case "reset":
                if (!sender.hasPermission("swiftlegends.admin")) {
                    sender.sendMessage(messageUtil.getMessage("no-permission"));
                    return true;
                }
                if (args.length < 2) {
                    sender.sendMessage(messageUtil.format("&cUsage: /sl reset <player>"));
                    return true;
                }
                Player target = Bukkit.getPlayer(args[1]);
                if (target == null) {
                    sender.sendMessage(messageUtil.format("&cPlayer not found!"));
                    return true;
                }
                playerDataManager.resetPlayer(target);
                sender.sendMessage(messageUtil.getMessage("data-reset"));
                return true;
                
            default:
                sender.sendMessage(messageUtil.format("&cUsage: /sl [reload|stats|reset]"));
                return true;
        }
    }
}