n0trando_07002

Create a Minecraft Paper 1.21.1 plugin called "AbilityPlugin".

Features:

* Command: /ability 1 * When a player uses /ability 1, they receive 5 explosive hits. * The next 5 times they hit another player with a melee attack, an explosion occurs at the victim's location. * The explosion should deal damage to nearby players but must not break blocks. * After all 5 explosive hits are used, the ability ends automatically. * Cooldown: 25 seconds before the player can use /ability 1 again. * If the player tries to use the command during cooldown, send: "§cAbility is on cooldown! Remaining time: %time%s" * When the ability is activated, send: "§aExplosive Ability activated! You have 5 explosive hits." * After each explosive hit, send: "§eExplosive hits remaining: %hits%" * Permission: ability.use * Plugin should be optimized for PvP servers. * Include plugin.yml and all required files. * Build a ready-to-use .jar file for Paper 1.21.1.

Kodari AI
KodariJun 7 at 11:00 pm 6

I’ll create a PvP-optimized explosive ability plugin for Paper 1.21.1.

AbilityPlugin
A PvP-focused ability system for Paper 1.21.1 servers. Players with permission can activate explosive melee attacks using /ability 1, granting 5 charged hits that create non-destructive explosions at the target's location. Features include cooldown management, hit tracking, colored chat feedback, and optimized combat integration for competitive PvP environments.

AbilityPlugin created successfully!

Core features implemented:

  • /ability 1 activates explosive melee ability (5 hits)

  • Explosions occur at victim location without block damage (power 4.0)

  • 25-second cooldown with precise remaining time display

  • Permission-based access (ability.use)

  • Real-time hit counter feedback

  • Projectile attacks excluded (melee only)

  • Optimized for Paper 1.21.1 PvP servers

Build with gradle build — the compiled JAR will be in build/libs/.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 237
src/main/java/com/example/abilityplugin/AbilityPlugin.java
package com.example.abilityplugin;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class AbilityPlugin extends JavaPlugin {
    private AbilityManager abilityManager;
    
    @Override
    public void onEnable() {
        this.abilityManager = new AbilityManager();
        
        this.getCommand("ability").setExecutor(new AbilityCommand(this.abilityManager));
        
        Bukkit.getPluginManager().registerEvents(new AbilityListener(this.abilityManager), this);
        
        this.getLogger().info("AbilityPlugin enabled successfully!");
    }
    
    @Override
    public void onDisable() {
        this.getLogger().info("AbilityPlugin disabled.");
    }
    
    public AbilityManager getAbilityManager() {
        return this.abilityManager;
    }
}