adriansvallers-dotcom

Can u make a plugin that shows cool downs for custom swords like, dash sword, pull sword, sonic boom bow, frozen cross bow and make it so its above the hot bar and when its ready it says ready

Kodari AI
KodariMar 1 at 9:34 pm 23,012 (v2)

I’ll create a custom weapon cooldown plugin with action bar display.

WeaponCooldowns
A custom weapon system featuring specialized weapons with unique abilities and cooldowns. Includes dash sword for quick movement, pull sword to attract entities, sonic boom bow for explosive arrows, and frozen crossbow to freeze targets. Real-time cooldown tracking displayed above the hotbar shows remaining time or ready status. Each weapon has configurable cooldowns, damage values, and visual effects.

Plugin created! Features 4 custom weapons with cooldowns displayed above the hotbar:

  • Dash Sword: Right-click to dash forward (5s cooldown)

  • Pull Sword: Right-click to pull nearby entities (8s cooldown)

  • Sonic Boom Bow: Shoots explosive arrows (10s cooldown)

  • Frozen Crossbow: Freezes targets on hit (12s cooldown)

Get weapons with /weapons <dash|pull|sonic|frozen>. Cooldowns show above hotbar as “Weapon: Xs” or “READY” when available.

[Generation stopped]

adriansvallers-dotcom

like that u see

1 image attached
Kodari AI
KodariMar 1 at 9:35 pm 4,406 (v2)

I can see the image! It shows a Minecraft PvP server with:

  • Multiple “WEAPON READY” status messages displayed at the bottom in different colors (yellow/gold text)

  • Custom health displays above each player’s head

  • Players in PvP gear (diamond/netherite armor)

  • Scoreboard on the right showing player stats (Ping, Kills, Deaths, Playtime)

  • Arena/PvP environment with NPCs and custom items

This appears to be showing the weapon cooldown system in action - where players get notified when their weapons are ready to use again after a cooldown period.

Based on your existing WeaponCooldowns plugin structure, I can see you already have:

  • Cooldown tracking (CooldownManager)

  • Ability system (AbilityManager)

  • Visual display task (AbilityDisplayTask)

  • Weapon management (WeaponManager)

What would you like me to do?

  1. Review/fix bugs in the existing plugin?

  2. Add new features (new abilities, different display styles, etc.)?

  3. Modify how the “WEAPON READY” messages appear?

  4. Add support for the health bars above players?

  5. Something else?

Let me know what you need! 🎯

adriansvallers-dotcom

i just need the cooldown and when it says ready u can use it i have the custom weapons already i just need the cooldowns

Kodari AI
KodariMar 1 at 9:37 pm 6,470 (v2)

I’ll read the current files to understand the structure and simplify it to just cooldowns with “Ready” notifications.

I’ll simplify this to just cooldowns with “Ready” notifications:

Simplified to just cooldowns with “Ready” notifications. When you right-click a custom weapon, it starts cooldown and sends you a message when it’s ready again.

adriansvallers-dotcom

The compilation failed with this error:

code
Validation failed for compilation: Compilation failed with 1 error(s):

ERROR in src/main/java/com/weaponcooldowns/tasks/AbilityDisplayTask.java at line 27: cannot find symbol
        Map<String, Integer> cooldowns = plugin.getCooldownManager().getAllCooldowns(player.getUniqueId());
                                                                    ^
  symbol: method getAllCooldowns(UUID)
  location: class CooldownManager


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - getAllCooldowns(UUID)
ACTION: Check method names and signatures

FILES TO INVESTIGATE:
  - src/main/java/com/weaponcooldowns/tasks/AbilityDisplayTask.java
 exceeds maximum 

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariMar 1 at 9:37 pm 3,066 (v2)

I need to read the relevant files to understand the issue and fix the missing method.

I can see the issue. The AbilityDisplayTask is calling getAllCooldowns(UUID) which doesn’t exist in CooldownManager. I need to add this method.

Added the getAllCooldowns(UUID) method to CooldownManager that returns a map of weapon types to their remaining cooldown times in seconds, filtering out expired cooldowns.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 688
src/main/java/com/weaponcooldowns/WeaponCooldowns.java
package com.weaponcooldowns;

import com.weaponcooldowns.commands.WeaponCommand;
import com.weaponcooldowns.commands.WeaponReloadCommand;
import com.weaponcooldowns.listeners.WeaponListener;
import com.weaponcooldowns.managers.CooldownManager;
import com.weaponcooldowns.managers.WeaponManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class WeaponCooldowns extends JavaPlugin {
    
    private CooldownManager cooldownManager;
    private WeaponManager weaponManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.cooldownManager = new CooldownManager(this);
        this.weaponManager = new WeaponManager(this);
        
        getServer().getPluginManager().registerEvents(new WeaponListener(this), this);
        
        getCommand("weapons").setExecutor(new WeaponCommand(this));
        getCommand("weaponreload").setExecutor(new WeaponReloadCommand(this));
        
        getLogger().info("WeaponCooldowns has been enabled!");
    }
    
    @Override
    public void onDisable() {
        cooldownManager.shutdown();
        getLogger().info("WeaponCooldowns has been disabled!");
    }
    
    public void reload() {
        reloadConfig();
        weaponManager.reload();
        getLogger().info("Configuration reloaded!");
    }
}