Program: 133917
Project: 133917
Buggy source:
public static void handleSpeedPassives(){
  int air=AirPassive.getSpeedPower();
  int chi=ChiPassive.getSpeedPower();
  int earth=EarthPassive.getSandRunSpeed();
  for (  Player player : Bukkit.getOnlinePlayers()) {
    if (ConfigManager.defaultConfig.get().getStringList("String_Node_Str").contains(player.getWorld().getName())) {
      return;
    }
    boolean sandbender=true;
    BendingPlayer bPlayer=BendingPlayer.getBendingPlayer(player);
    if (bPlayer == null)     continue;
    if (!bPlayer.hasElement(Element.EARTH))     sandbender=false;
    if (!bPlayer.hasSubElement(SubElement.SAND))     sandbender=false;
    if (!bPlayer.hasElement(Element.AIR))     air=0;
    if (!bPlayer.hasElement(Element.CHI))     chi=0;
    int max=0;
    if (sandbender && (player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType() == Material.SAND || player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType() == Material.SANDSTONE || player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType() == Material.RED_SANDSTONE)) {
      if (CoreAbility.hasAbility(player,AcrobatStance.class)) {
        AcrobatStance abil=CoreAbility.getAbility(player,AcrobatStance.class);
        max=Math.max(air,chi);
        max=Math.max(max,abil.getSpeed());
        max=Math.max(max,earth);
      }
 else {
        max=Math.max(air,chi);
        max=Math.max(max,earth);
      }
    }
 else {
      if (CoreAbility.hasAbility(player,AcrobatStance.class)) {
        AcrobatStance abil=CoreAbility.getAbility(player,AcrobatStance.class);
        max=Math.max(air,chi);
        max=Math.max(max,abil.getSpeed());
      }
 else {
        max=Math.max(air,chi);
      }
    }
    if (max == 0)     continue;
    if (player.isSprinting()) {
      player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,3,max - 1));
    }
  }
}

Fixed version (ground truth):
public static void handleSpeedPassives(){
  int air=AirPassive.getSpeedPower();
  int chi=ChiPassive.getSpeedPower();
  int earth=EarthPassive.getSandRunSpeed();
  for (  Player player : Bukkit.getOnlinePlayers()) {
    if (ConfigManager.defaultConfig.get().getStringList("String_Node_Str").contains(player.getWorld().getName())) {
      continue;
    }
    boolean sandbender=true;
    BendingPlayer bPlayer=BendingPlayer.getBendingPlayer(player);
    if (bPlayer == null)     continue;
    if (!bPlayer.hasElement(Element.EARTH))     sandbender=false;
    if (!bPlayer.hasSubElement(SubElement.SAND))     sandbender=false;
    if (!bPlayer.hasElement(Element.AIR))     air=0;
    if (!bPlayer.hasElement(Element.CHI))     chi=0;
    int max=0;
    if (sandbender && (player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType() == Material.SAND || player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType() == Material.SANDSTONE || player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType() == Material.RED_SANDSTONE)) {
      if (CoreAbility.hasAbility(player,AcrobatStance.class)) {
        AcrobatStance abil=CoreAbility.getAbility(player,AcrobatStance.class);
        max=Math.max(air,chi);
        max=Math.max(max,abil.getSpeed());
        max=Math.max(max,earth);
      }
 else {
        max=Math.max(air,chi);
        max=Math.max(max,earth);
      }
    }
 else {
      if (CoreAbility.hasAbility(player,AcrobatStance.class)) {
        AcrobatStance abil=CoreAbility.getAbility(player,AcrobatStance.class);
        max=Math.max(air,chi);
        max=Math.max(max,abil.getSpeed());
      }
 else {
        max=Math.max(air,chi);
      }
    }
    if (max == 0)     continue;
    if (player.isSprinting()) {
      player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED,3,max - 1));
    }
  }
}