mrpanzerottomiki

Fix this tools and make the sword dash and the mace dash and the dash bow go up 10 blocks and add cooldown to the bow 15 sec cooldown and make the bolt sword without coldown and make a axe when i right click i can teleport behind the player i hit if i am like 10 blcok distance and with the stun sword i need slownees 5 for 2 sec and i can’t see for 2 sec and weakness 5 and bolt sword need no cooldown and need a 35% to do the thunder and make 3 true hearts

Kodari AI
KodariMay 7 at 6:12 pm 25,777 (v2)

I’ll read the existing files to understand the current implementation and fix all the tools as requested.

I’ll fix all the tools based on your requirements. Let me make the necessary changes:

Now let me update the command to include the new teleport axe:

Perfect! I’ve fixed all the tools as requested. Here’s what was changed:

Changes Made:

  1. Dash Sword, Mace Dash, and Dash Bow - Now go up 10 blocks (increased Y velocity to 1.5)

  2. Dash Bow - Added 15 second cooldown

  3. Bolt Sword:

    • NO cooldown (already had no cooldown)

    • 35% chance to strike lightning (changed from 30%)

    • 3 true hearts damage (6.0 HP - already correct)

  4. New Teleport Axe:

    • Hit a player with the axe

    • Right-click to teleport behind them

    • Only works if they’re within 10 blocks

    • 10 second cooldown

    • Get it with /ffatools give <player> teleportaxe

  5. Stun Sword - Now applies:

    • Slowness 5 for 2 seconds

    • Blindness for 2 seconds

    • Weakness 5 for 2 seconds

All tools are now configured exactly as you requested!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
12 880
src/main/java/com/ffatools/FFAToolsPlugin.java
package com.ffatools;

import com.ffatools.listeners.CombatListener;
import com.ffatools.listeners.InteractListener;
import com.ffatools.listeners.ProjectileListener;
import com.ffatools.managers.CooldownManager;
import com.ffatools.managers.ItemManager;
import com.ffatools.commands.FFAToolsCommand;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FFAToolsPlugin extends JavaPlugin {
    
    private CooldownManager cooldownManager;
    private ItemManager itemManager;
    private InteractListener interactListener;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.cooldownManager = new CooldownManager();
        this.itemManager = new ItemManager(this);
        this.interactListener = new InteractListener(this);
        
        getCommand("ffatools").setExecutor(new FFAToolsCommand(this));
        
        getServer().getPluginManager().registerEvents(interactListener, this);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new ProjectileListener(this), this);
        
        getLogger().info("FFATools has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("FFATools has been disabled!");
    }
    
    public void reloadPlugin() {
        reloadConfig();
        this.itemManager = new ItemManager(this);
    }
}