@EventHandler public void onAttack(EntityDamageByEntityEvent event, ItemStack inHand) { if (!(event.getDamager() instanceof Player && !(event.