Program: 133808
Project: 133808
Buggy source:
@EventHandler(priority=EventPriority.NORMAL,ignoreCancelled=true) public void onPlayerSwing(PlayerAnimationEvent event){
  if (event.isCancelled()) {
    return;
  }
  Player player=event.getPlayer();
  BendingPlayer bPlayer=BendingPlayer.getBendingPlayer(player);
  if (bPlayer == null) {
    return;
  }
 else   if (RIGHT_CLICK_INTERACT.contains(player.getUniqueId())) {
    return;
  }
  Entity target=GeneralMethods.getTargetedEntity(player,3);
  if (target != null && !(target.equals(player)) && target instanceof LivingEntity) {
    ComboManager.addComboAbility(player,ClickType.LEFT_CLICK_ENTITY);
  }
 else {
    ComboManager.addComboAbility(player,ClickType.LEFT_CLICK);
  }
  if (Suffocate.isBreathbent(player)) {
    event.setCancelled(true);
    return;
  }
 else   if (Bloodbending.isBloodbent(player) || Paralyze.isParalyzed(player) || ChiCombo.isParalyzed(player)) {
    event.setCancelled(true);
    return;
  }
 else   if (bPlayer.isChiBlocked()) {
    event.setCancelled(true);
    return;
  }
 else   if (GeneralMethods.isInteractable(player.getTargetBlock((Set<Material>)null,5))) {
    event.setCancelled(true);
    return;
  }
 else   if (player.getInventory().getItemInMainHand().getType() == Material.FISHING_ROD) {
    return;
  }
  BlockSource.update(player,ClickType.LEFT_CLICK);
  AirScooter.check(player);
  String abil=bPlayer.getBoundAbilityName();
  CoreAbility coreAbil=bPlayer.getBoundAbility();
  if (coreAbil == null && !MultiAbilityManager.hasMultiAbilityBound(player)) {
    return;
  }
 else   if (bPlayer.canBendIgnoreCooldowns(coreAbil)) {
    if (coreAbil instanceof AddonAbility) {
      return;
    }
    if (coreAbil instanceof AirAbility && bPlayer.isElementToggled(Element.AIR) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirBlast(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirSuction(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        AirBurst.coneBurst(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirScooter(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirSpout(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirSwipe(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        if (!ProjectKorra.plugin.getConfig().getBoolean("String_Node_Str") || !bPlayer.canUseFlight()) {
          return;
        }
        if (AirFlight.isFlying(event.getPlayer())) {
          if (AirFlight.isHovering(event.getPlayer())) {
            AirFlight.setHovering(event.getPlayer(),false);
          }
 else {
            AirFlight.setHovering(event.getPlayer(),true);
          }
        }
      }
    }
    if (coreAbil instanceof WaterAbility && bPlayer.isElementToggled(Element.WATER) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        Bloodbending.launch(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        IceBlast.activate(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        IceSpikeBlast.activate(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new OctopusForm(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        if (!CoreAbility.hasAbility(player,PhaseChange.class)) {
          new PhaseChange(player,PhaseChangeType.FREEZE);
        }
 else {
          PhaseChange pc=CoreAbility.getAbility(player,PhaseChange.class);
          pc.startNewType(PhaseChangeType.FREEZE);
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new PlantArmor(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new WaterSpout(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        WaterManipulation.moveWater(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new SurgeWall(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Torrent(player);
      }
    }
    if (coreAbil instanceof EarthAbility && bPlayer.isElementToggled(Element.EARTH) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Catapult(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        EarthBlast.throwEarth(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new RaiseEarth(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Collapse(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        Shockwave.coneShockwave(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        EarthArmor armor=CoreAbility.getAbility(player,EarthArmor.class);
        if (armor != null && armor.isFormed()) {
          armor.click();
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new EarthGrab(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Tremorsense(player,true);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        MetalClips clips=CoreAbility.getAbility(player,MetalClips.class);
        if (clips == null) {
          new MetalClips(player,0);
        }
 else         if (clips.getMetalClipsCount() < (player.hasPermission("String_Node_Str") ? 4 : 3)) {
          clips.shootMetal();
        }
 else         if (clips.getMetalClipsCount() == 4 && clips.isCanUse4Clips()) {
          clips.crush();
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        LavaSurge surge=CoreAbility.getAbility(player,LavaSurge.class);
        if (surge != null) {
          surge.launch();
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new LavaFlow(player,AbilityType.CLICK);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new EarthSmash(player,ClickType.LEFT_CLICK);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new SandSpout(player);
      }
    }
    if (coreAbil instanceof FireAbility && bPlayer.isElementToggled(Element.FIRE) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Blaze(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new FireBlast(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new FireJet(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new HeatControl(player,HeatControlType.MELT);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        if (ConfigManager.defaultConfig.get().getBoolean("String_Node_Str")) {
          bPlayer.toggleIllumination();
        }
 else {
          new Illumination(player);
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        FireBurst.coneBurst(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new FireShield(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new WallOfFire(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        Combustion.explode(player);
      }
    }
    if (coreAbil instanceof ChiAbility && bPlayer.isElementToggled(Element.CHI) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        new HighJump(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new RapidPunch(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Smokescreen(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new WarriorStance(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AcrobatStance(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new QuickStrike(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new SwiftKick(player);
      }
    }
    if (abil.equalsIgnoreCase("String_Node_Str")) {
      new AvatarState(player);
    }
  }
  if (MultiAbilityManager.hasMultiAbilityBound(player)) {
    abil=MultiAbilityManager.getBoundMultiAbility(player);
    if (abil.equalsIgnoreCase("String_Node_Str")) {
      new WaterArms(player);
    }
  }
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.NORMAL,ignoreCancelled=true) public void onPlayerSwing(PlayerAnimationEvent event){
  if (event.isCancelled()) {
    return;
  }
  Player player=event.getPlayer();
  BendingPlayer bPlayer=BendingPlayer.getBendingPlayer(player);
  if (bPlayer == null) {
    return;
  }
 else   if (RIGHT_CLICK_INTERACT.contains(player.getUniqueId())) {
    return;
  }
  Entity target=GeneralMethods.getTargetedEntity(player,3);
  if (target != null && !(target.equals(player)) && target instanceof LivingEntity) {
    ComboManager.addComboAbility(player,ClickType.LEFT_CLICK_ENTITY);
  }
 else {
    ComboManager.addComboAbility(player,ClickType.LEFT_CLICK);
  }
  if (Suffocate.isBreathbent(player)) {
    event.setCancelled(true);
    return;
  }
 else   if (Bloodbending.isBloodbent(player) || Paralyze.isParalyzed(player) || ChiCombo.isParalyzed(player)) {
    event.setCancelled(true);
    return;
  }
 else   if (bPlayer.isChiBlocked()) {
    event.setCancelled(true);
    return;
  }
 else   if (GeneralMethods.isInteractable(player.getTargetBlock((Set<Material>)null,5))) {
    event.setCancelled(true);
    return;
  }
 else   if (player.getInventory().getItemInMainHand().getType() == Material.FISHING_ROD) {
    return;
  }
  BlockSource.update(player,ClickType.LEFT_CLICK);
  AirScooter.check(player);
  String abil=bPlayer.getBoundAbilityName();
  CoreAbility coreAbil=bPlayer.getBoundAbility();
  if (coreAbil == null && !MultiAbilityManager.hasMultiAbilityBound(player)) {
    return;
  }
 else   if (bPlayer.canBendIgnoreCooldowns(coreAbil)) {
    if (coreAbil instanceof AddonAbility) {
      return;
    }
    if (coreAbil instanceof AirAbility && bPlayer.isElementToggled(Element.AIR) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirBlast(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirSuction(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        AirBurst.coneBurst(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirScooter(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirSpout(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AirSwipe(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        if (!ProjectKorra.plugin.getConfig().getBoolean("String_Node_Str") || !bPlayer.canUseFlight()) {
          return;
        }
        if (AirFlight.isFlying(event.getPlayer())) {
          if (AirFlight.isHovering(event.getPlayer())) {
            AirFlight.setHovering(event.getPlayer(),false);
          }
 else {
            AirFlight.setHovering(event.getPlayer(),true);
          }
        }
      }
    }
    if (coreAbil instanceof WaterAbility && bPlayer.isElementToggled(Element.WATER) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        Bloodbending.launch(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        IceBlast.activate(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        IceSpikeBlast.activate(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new OctopusForm(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        if (!CoreAbility.hasAbility(player,PhaseChange.class)) {
          new PhaseChange(player,PhaseChangeType.FREEZE);
        }
 else {
          PhaseChange pc=CoreAbility.getAbility(player,PhaseChange.class);
          pc.startNewType(PhaseChangeType.FREEZE);
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new PlantArmor(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new WaterSpout(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        WaterManipulation.moveWater(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new SurgeWall(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Torrent(player);
      }
    }
    if (coreAbil instanceof EarthAbility && bPlayer.isElementToggled(Element.EARTH) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Catapult(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        EarthBlast.throwEarth(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new RaiseEarth(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Collapse(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        Shockwave.coneShockwave(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        EarthArmor armor=CoreAbility.getAbility(player,EarthArmor.class);
        if (armor != null && armor.isFormed()) {
          armor.click();
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new EarthGrab(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Tremorsense(player,true);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        MetalClips clips=CoreAbility.getAbility(player,MetalClips.class);
        if (clips == null) {
          new MetalClips(player,0);
        }
 else         if (clips.getMetalClipsCount() < (player.hasPermission("String_Node_Str") ? 4 : 3)) {
          clips.shootMetal();
        }
 else         if (clips.getMetalClipsCount() == 4 && clips.isCanUse4Clips()) {
          clips.crush();
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        LavaSurge surge=CoreAbility.getAbility(player,LavaSurge.class);
        if (surge != null) {
          surge.launch();
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new LavaFlow(player,AbilityType.CLICK);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new EarthSmash(player,ClickType.LEFT_CLICK);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new SandSpout(player);
      }
    }
    if (coreAbil instanceof FireAbility && bPlayer.isElementToggled(Element.FIRE) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Blaze(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new FireBlast(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new FireJet(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new HeatControl(player,HeatControlType.MELT);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        if (ConfigManager.defaultConfig.get().getBoolean("String_Node_Str")) {
          bPlayer.toggleIllumination();
        }
 else {
          new Illumination(player);
        }
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        FireBurst.coneBurst(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new FireShield(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new WallOfFire(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        Combustion.explode(player);
      }
    }
    if (coreAbil instanceof ChiAbility && bPlayer.isElementToggled(Element.CHI) == true) {
      if (GeneralMethods.isWeapon(player.getInventory().getItemInMainHand().getType()) && !plugin.getConfig().getBoolean("String_Node_Str")) {
        return;
      }
      if (abil.equalsIgnoreCase("String_Node_Str")) {
        new HighJump(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new Smokescreen(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new WarriorStance(player);
      }
 else       if (abil.equalsIgnoreCase("String_Node_Str")) {
        new AcrobatStance(player);
      }
    }
    if (abil.equalsIgnoreCase("String_Node_Str")) {
      new AvatarState(player);
    }
  }
  if (MultiAbilityManager.hasMultiAbilityBound(player)) {
    abil=MultiAbilityManager.getBoundMultiAbility(player);
    if (abil.equalsIgnoreCase("String_Node_Str")) {
      new WaterArms(player);
    }
  }
}