Program: 25214
Project: 25214
Buggy source:
public void onPlayerItem(PlayerItemEvent event){
  Block block=event.getBlockClicked();
  Player player=event.getPlayer();
  ItemStack is=player.getItemInHand();
  if (is.getTypeId() == 297) {
    if (mcUsers.getProfile(player).getHerbalismInt() >= 50) {
      player.setHealth(player.getHealth() + 2);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() > 150 && mcUsers.getProfile(player).getHerbalismInt() < 250) {
      player.setHealth(player.getHealth() + 4);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() > 250 && mcUsers.getProfile(player).getHerbalismInt() < 400) {
      player.setHealth(player.getHealth() + 5);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() > 400 && mcUsers.getProfile(player).getHerbalismInt() < 750) {
      player.setHealth(player.getHealth() + 6);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() > 750) {
      player.setHealth(player.getHealth() + 8);
    }
  }
  if (is.getTypeId() == 297) {
    if (mcUsers.getProfile(player).getHerbalismInt() >= 50) {
      player.setHealth(player.getHealth() + 1);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() > 150 && mcUsers.getProfile(player).getHerbalismInt() < 250) {
      player.setHealth(player.getHealth() + 2);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() > 250 && mcUsers.getProfile(player).getHerbalismInt() < 400) {
      player.setHealth(player.getHealth() + 3);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() > 400 && mcUsers.getProfile(player).getHerbalismInt() < 750) {
      player.setHealth(player.getHealth() + 4);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() > 750) {
      player.setHealth(player.getHealth() + 6);
    }
  }
  if (block != null && block.getTypeId() == 42) {
    short durability=is.getDurability();
    if (player.getItemInHand().getDurability() > 0) {
      if (mcm.getInstance().isArmor(is) && block.getTypeId() == 42) {
        if (mcm.getInstance().isDiamondArmor(is) && mcm.getInstance().hasDiamond(player)) {
          mcm.getInstance().removeDiamond(player);
          player.getItemInHand().setDurability(mcm.getInstance().getArmorRepairAmount(is,player));
          mcUsers.getProfile(player).skillUpRepair(1);
          player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + mcUsers.getProfile(player).getRepair()+ "String_Node_Str");
        }
 else         if (mcm.getInstance().isIronArmor(is) && mcm.getInstance().hasIron(player)) {
          mcm.getInstance().removeIron(player);
          player.getItemInHand().setDurability(mcm.getInstance().getArmorRepairAmount(is,player));
          mcUsers.getProfile(player).skillUpRepair(1);
          player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + mcUsers.getProfile(player).getRepair()+ "String_Node_Str");
        }
      }
    }
 else {
      player.sendMessage("String_Node_Str");
    }
    if (mcm.getInstance().isTools(is) && block.getTypeId() == 42) {
      if (mcm.getInstance().isIronTools(is) && mcm.getInstance().hasIron(player)) {
        is.setDurability(mcm.getInstance().getToolRepairAmount(is,durability,player));
        mcm.getInstance().removeIron(player);
        mcUsers.getProfile(player).skillUpRepair(1);
        player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + mcUsers.getProfile(player).getRepair()+ "String_Node_Str");
      }
 else       if (mcm.getInstance().isDiamondTools(is) && mcm.getInstance().hasDiamond(player) && mcUsers.getProfile(player).getRepairInt() >= 50) {
        is.setDurability(mcm.getInstance().getToolRepairAmount(is,durability,player));
        mcm.getInstance().removeDiamond(player);
        mcUsers.getProfile(player).skillUpRepair(1);
        player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + mcUsers.getProfile(player).getRepair()+ "String_Node_Str");
      }
 else       if (mcm.getInstance().isDiamondTools(is) && mcUsers.getProfile(player).getRepairInt() < 50) {
        player.sendMessage(ChatColor.DARK_RED + "String_Node_Str");
      }
 else       if (mcm.getInstance().isDiamondTools(is) && !mcm.getInstance().hasDiamond(player) || mcm.getInstance().isIronTools(is) && !mcm.getInstance().hasIron(player)) {
        if (mcm.getInstance().isDiamondTools(is) && !mcm.getInstance().hasDiamond(player))         player.sendMessage(ChatColor.DARK_RED + "String_Node_Str" + ChatColor.BLUE+ "String_Node_Str");
        if (mcm.getInstance().isIronTools(is) && !mcm.getInstance().hasIron(player))         player.sendMessage(ChatColor.DARK_RED + "String_Node_Str" + ChatColor.GRAY+ "String_Node_Str");
      }
 else       if (mcm.getInstance().isDiamondArmor(is) && !mcm.getInstance().hasDiamond(player)) {
        player.sendMessage(ChatColor.DARK_RED + "String_Node_Str" + ChatColor.BLUE+ "String_Node_Str");
      }
 else       if (mcm.getInstance().isIronArmor(is) && !mcm.getInstance().hasIron(player))       player.sendMessage(ChatColor.DARK_RED + "String_Node_Str" + ChatColor.GRAY+ "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
public void onPlayerItem(PlayerItemEvent event){
  Block block=event.getBlockClicked();
  Player player=event.getPlayer();
  ItemStack is=player.getItemInHand();
  if (is.getTypeId() == 297) {
    if (mcUsers.getProfile(player).getHerbalismInt() >= 50 && mcUsers.getProfile(player).getHerbalismInt() < 150) {
      player.setHealth(player.getHealth() + 2);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() <= 150) {
      player.setHealth(player.getHealth() + 4);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() <= 250) {
      player.setHealth(player.getHealth() + 5);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() <= 400) {
      player.setHealth(player.getHealth() + 6);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() <= 750) {
      player.setHealth(player.getHealth() + 8);
    }
  }
  if (is.getTypeId() == 282) {
    if (mcUsers.getProfile(player).getHerbalismInt() >= 50 && mcUsers.getProfile(player).getHerbalismInt() < 150) {
      player.setHealth(player.getHealth() + 1);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() <= 150) {
      player.setHealth(player.getHealth() + 2);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() <= 250) {
      player.setHealth(player.getHealth() + 3);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() <= 400) {
      player.setHealth(player.getHealth() + 4);
    }
 else     if (mcUsers.getProfile(player).getHerbalismInt() <= 750) {
      player.setHealth(player.getHealth() + 6);
    }
  }
  if (block != null && block.getTypeId() == 42) {
    short durability=is.getDurability();
    if (player.getItemInHand().getDurability() > 0) {
      if (mcm.getInstance().isArmor(is) && block.getTypeId() == 42) {
        if (mcm.getInstance().isDiamondArmor(is) && mcm.getInstance().hasDiamond(player)) {
          mcm.getInstance().removeDiamond(player);
          player.getItemInHand().setDurability(mcm.getInstance().getArmorRepairAmount(is,player));
          mcUsers.getProfile(player).skillUpRepair(1);
          player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + mcUsers.getProfile(player).getRepair()+ "String_Node_Str");
        }
 else         if (mcm.getInstance().isIronArmor(is) && mcm.getInstance().hasIron(player)) {
          mcm.getInstance().removeIron(player);
          player.getItemInHand().setDurability(mcm.getInstance().getArmorRepairAmount(is,player));
          mcUsers.getProfile(player).skillUpRepair(1);
          player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + mcUsers.getProfile(player).getRepair()+ "String_Node_Str");
        }
      }
      if (mcm.getInstance().isTools(is) && block.getTypeId() == 42) {
        if (mcm.getInstance().isIronTools(is) && mcm.getInstance().hasIron(player)) {
          is.setDurability(mcm.getInstance().getToolRepairAmount(is,durability,player));
          mcm.getInstance().removeIron(player);
          mcUsers.getProfile(player).skillUpRepair(1);
          player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + mcUsers.getProfile(player).getRepair()+ "String_Node_Str");
        }
 else         if (mcm.getInstance().isDiamondTools(is) && mcm.getInstance().hasDiamond(player) && mcUsers.getProfile(player).getRepairInt() >= 50) {
          is.setDurability(mcm.getInstance().getToolRepairAmount(is,durability,player));
          mcm.getInstance().removeDiamond(player);
          mcUsers.getProfile(player).skillUpRepair(1);
          player.sendMessage(ChatColor.YELLOW + "String_Node_Str" + mcUsers.getProfile(player).getRepair()+ "String_Node_Str");
        }
 else         if (mcm.getInstance().isDiamondTools(is) && mcUsers.getProfile(player).getRepairInt() < 50) {
          player.sendMessage(ChatColor.DARK_RED + "String_Node_Str");
        }
 else         if (mcm.getInstance().isDiamondTools(is) && !mcm.getInstance().hasDiamond(player) || mcm.getInstance().isIronTools(is) && !mcm.getInstance().hasIron(player)) {
          if (mcm.getInstance().isDiamondTools(is) && !mcm.getInstance().hasDiamond(player))           player.sendMessage(ChatColor.DARK_RED + "String_Node_Str" + ChatColor.BLUE+ "String_Node_Str");
          if (mcm.getInstance().isIronTools(is) && !mcm.getInstance().hasIron(player))           player.sendMessage(ChatColor.DARK_RED + "String_Node_Str" + ChatColor.GRAY+ "String_Node_Str");
        }
 else         if (mcm.getInstance().isDiamondArmor(is) && !mcm.getInstance().hasDiamond(player)) {
          player.sendMessage(ChatColor.DARK_RED + "String_Node_Str" + ChatColor.BLUE+ "String_Node_Str");
        }
 else         if (mcm.getInstance().isIronArmor(is) && !mcm.getInstance().hasIron(player))         player.sendMessage(ChatColor.DARK_RED + "String_Node_Str" + ChatColor.GRAY+ "String_Node_Str");
      }
    }
 else {
      player.sendMessage("String_Node_Str");
    }
  }
}