package me.otisdiver.otisarena.task.kit;

import org.bukkit.entity.Fireball;

public class Firespit extends Ability {
    
    private static final long waitMillis = 3000;

    @Override
    protected void run() {
        if (playerOnCooldown(player)) return;
        startCooldown(player, waitMillis);
        
        // shoot a fireball out of the player
        Fireball fireball = player.launchProjectile(Fireball.class);
        fireball.setVelocity(player.getLocation().getDirection().multiply(10));
    }
    
}

@@ -362,28 +362,8 @@
     
- Fireball fireball =
  pla
@@ -402,26 +402,8 @@
 ass)
-;%0A        fireball
 .set
@@ -460,10 +460,11 @@
 ply(
-1
 0
+.5
 ));%0A

fix fireball velocity + tiny refactor