Program: 33860
Project: 33860
Buggy source:
/** 
 * Handles hitting minecarts or feeding animals
 * @param e
 */
@EventHandler(priority=EventPriority.LOWEST,ignoreCancelled=true) public void onPlayerHitEntity(PlayerInteractEntityEvent e){
  Player p=e.getPlayer();
  if (DEBUG) {
    plugin.getLogger().info("String_Node_Str" + e.getEventName());
  }
  if (!inWorld(p)) {
    return;
  }
  if (p.isOp() || VaultHelper.checkPerm(p,Settings.PERMPREFIX + "String_Node_Str")) {
    return;
  }
  if (p.getItemInHand() != null && p.getItemInHand().getType().equals(Material.LEASH)) {
    return;
  }
  Island island=plugin.getGrid().getProtectedIslandAt(e.getPlayer().getLocation());
  if (!plugin.getGrid().playerIsOnIsland(e.getPlayer())) {
    if (e.getRightClicked() != null && e.getRightClicked().getType().equals(EntityType.VILLAGER)) {
      if (island != null) {
        if (DEBUG) {
          plugin.getLogger().info("String_Node_Str");
          plugin.getLogger().info("String_Node_Str");
          plugin.getLogger().info("String_Node_Str" + island.getIgsFlag(SettingsFlag.VILLAGER_TRADING));
        }
        if ((!island.getIgsFlag(SettingsFlag.VILLAGER_TRADING) && !island.getMembers().contains(p.getUniqueId()))) {
          Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
          e.setCancelled(true);
          return;
        }
      }
    }
    if (p.getItemInHand() != null && (p.getItemInHand().getType().equals(Material.NAME_TAG) || p.getItemInHand().getType().equals(Material.INK_SACK))) {
      Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
      e.setCancelled(true);
      e.getPlayer().updateInventory();
      return;
    }
    if (p.getItemInHand() != null && e.getRightClicked() instanceof Animals) {
      Material type=p.getItemInHand().getType();
      if (type == Material.EGG || type == Material.WHEAT || type == Material.CARROT_ITEM || type == Material.SEEDS) {
        if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.BREEDING)) {
          Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
          e.setCancelled(true);
          return;
        }
        if (island != null) {
          if ((!island.getIgsFlag(SettingsFlag.BREEDING) && !island.getMembers().contains(p.getUniqueId()))) {
            Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
            e.setCancelled(true);
            return;
          }
        }
      }
    }
switch (e.getRightClicked().getType()) {
case CREEPER:
      if (!Settings.allowCreeperGriefing) {
        ItemStack item=e.getPlayer().getItemInHand();
        if (item != null && item.getType().equals(Material.FLINT_AND_STEEL)) {
          if (!island.getMembers().contains(e.getPlayer().getUniqueId())) {
            litCreeper.add(e.getRightClicked().getUniqueId());
            if (DEBUG) {
              plugin.getLogger().info("String_Node_Str");
            }
          }
        }
      }
    break;
case LLAMA:
case SKELETON_HORSE:
case ZOMBIE_HORSE:
case HORSE:
  if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.HORSE_RIDING)) {
    Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
    e.setCancelled(true);
  }
if (island != null && !island.getIgsFlag(SettingsFlag.HORSE_RIDING)) {
  Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
  e.setCancelled(true);
}
break;
case ITEM_FRAME:
if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.PLACE_BLOCKS)) {
Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
e.setCancelled(true);
}
if (island != null) {
if (!island.getIgsFlag(SettingsFlag.PLACE_BLOCKS)) {
Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
e.setCancelled(true);
}
}
break;
case MINECART_CHEST:
case MINECART_FURNACE:
case MINECART_HOPPER:
if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.CHEST)) {
Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
e.setCancelled(true);
}
if (island != null) {
if (!island.getIgsFlag(SettingsFlag.CHEST)) {
Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
e.setCancelled(true);
}
}
break;
default :
break;
}
}
}

Fixed version (ground truth):
/** 
 * Handles hitting minecarts or feeding animals
 * @param e
 */
@EventHandler(priority=EventPriority.LOWEST,ignoreCancelled=true) public void onPlayerHitEntity(PlayerInteractEntityEvent e){
  Player p=e.getPlayer();
  if (DEBUG) {
    plugin.getLogger().info("String_Node_Str" + e.getEventName());
  }
  if (!inWorld(p)) {
    return;
  }
  if (p.isOp() || VaultHelper.checkPerm(p,Settings.PERMPREFIX + "String_Node_Str")) {
    return;
  }
  if (Util.playerIsHolding(p,Material.LEASH)) {
    return;
  }
  Island island=plugin.getGrid().getProtectedIslandAt(e.getPlayer().getLocation());
  if (!plugin.getGrid().playerIsOnIsland(e.getPlayer())) {
    if (e.getRightClicked() != null && e.getRightClicked().getType().equals(EntityType.VILLAGER)) {
      if (island != null) {
        if (DEBUG) {
          plugin.getLogger().info("String_Node_Str");
          plugin.getLogger().info("String_Node_Str");
          plugin.getLogger().info("String_Node_Str" + island.getIgsFlag(SettingsFlag.VILLAGER_TRADING));
        }
        if ((!island.getIgsFlag(SettingsFlag.VILLAGER_TRADING) && !island.getMembers().contains(p.getUniqueId()))) {
          Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
          e.setCancelled(true);
          return;
        }
      }
    }
    if (Util.playerIsHolding(p,Material.NAME_TAG) || Util.playerIsHolding(p,Material.INK_SACK)) {
      Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
      e.setCancelled(true);
      e.getPlayer().updateInventory();
      return;
    }
    if (Util.playerIsHolding(p,Material.COOKIE) && e.getRightClicked() instanceof Animals) {
      if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.HURT_MOBS)) {
        Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
        e.setCancelled(true);
        return;
      }
      if (island != null) {
        if ((!island.getIgsFlag(SettingsFlag.HURT_MOBS) && !island.getMembers().contains(p.getUniqueId()))) {
          Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
          e.setCancelled(true);
          return;
        }
      }
    }
    if (e.getRightClicked() instanceof Animals) {
      for (      ItemStack item : Util.getPlayerInHandItems(p)) {
        Material type=item.getType();
        if (type == Material.EGG || type == Material.WHEAT || type == Material.CARROT_ITEM || type == Material.SEEDS) {
          if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.BREEDING)) {
            Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
            e.setCancelled(true);
            return;
          }
          if (island != null) {
            if ((!island.getIgsFlag(SettingsFlag.BREEDING) && !island.getMembers().contains(p.getUniqueId()))) {
              Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
              e.setCancelled(true);
              return;
            }
          }
        }
      }
    }
switch (e.getRightClicked().getType()) {
case CREEPER:
      if (!Settings.allowCreeperGriefing) {
        for (        ItemStack item : Util.getPlayerInHandItems(e.getPlayer())) {
          if (item != null && item.getType().equals(Material.FLINT_AND_STEEL)) {
            if (!island.getMembers().contains(e.getPlayer().getUniqueId())) {
              litCreeper.add(e.getRightClicked().getUniqueId());
              if (DEBUG) {
                plugin.getLogger().info("String_Node_Str");
              }
            }
          }
        }
      }
    break;
case LLAMA:
case SKELETON_HORSE:
case ZOMBIE_HORSE:
case HORSE:
  if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.HORSE_RIDING)) {
    Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
    e.setCancelled(true);
  }
if (island != null && !island.getIgsFlag(SettingsFlag.HORSE_RIDING)) {
  Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
  e.setCancelled(true);
}
break;
case ITEM_FRAME:
if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.PLACE_BLOCKS)) {
Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
e.setCancelled(true);
}
if (island != null) {
if (!island.getIgsFlag(SettingsFlag.PLACE_BLOCKS)) {
Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
e.setCancelled(true);
}
}
break;
case MINECART_CHEST:
case MINECART_FURNACE:
case MINECART_HOPPER:
if (island == null && !Settings.defaultWorldSettings.get(SettingsFlag.CHEST)) {
Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
e.setCancelled(true);
}
if (island != null) {
if (!island.getIgsFlag(SettingsFlag.CHEST)) {
Util.sendMessage(e.getPlayer(),ChatColor.RED + plugin.myLocale(e.getPlayer().getUniqueId()).islandProtected);
e.setCancelled(true);
}
}
break;
default :
break;
}
}
}