Hello Community! I'm trying to develop my first plugin, and the only difficulty I've found so far is using MetaData to identify that a WitherSkull is differente from a Fireball when both are thrown. The IteminHand was set previously. The code I have for the Fireball is: Code:java if (p2.getItemInHand().equals(stickFireball) && (p2.hasPermission("minecraftando.evento") || p2.isOp()) ){if (e.getAction() == Action.RIGHT_CLICK_AIR){p2.launchProjectile(SmallFireball.class).setVelocity(p2.getLocation().getDirection().multiply(0.5));}else if (e.getAction() == Action.LEFT_CLICK_AIR){p2.launchProjectile(Fireball.class).setVelocity(p2.getLocation().getDirection().multiply(0.5));} And the code for the WitherSkull is: Code:java if (p2.getItemInHand().equals(witherStick) && (p2.hasPermission("minecraftando.evento") || p2.isOp()) ){WitherSkull cabeca = p2.launchProjectile(WitherSkull.class);cabeca.setVelocity(p2.getLocation().getDirection().multiply(3.5));cabeca.setFireTicks(0);cabeca.setIsIncendiary(false);cabeca.setMetadata("cabeca", new FixedMetadataValue(plugin3, "cabecao"));} When recovering them, I use: Code:java if(r.getDamager() instanceof Fireball && r.getEntity() instanceof Player && Vip.ReturnEvento() == true && r.getEntity().hasMetadata("cabeca") == false){Player s = (Player) r.getEntity();Fireball bola = (Fireball) r.getDamager();Player atirador = (Player)bola.getShooter();atirador.sendMessage("Bateu com fireball: " + r.getEntity());s.damage(5.0);s.setFireTicks(40); } & Code:java else if (r.getDamager() instanceof Entity && r.getEntity() instanceof Player && Vip.ReturnEvento() == true && r.getEntity().hasMetadata("cabeca") == true ){ Player s = (Player) r.getEntity(); WitherSkull bola = (WitherSkull) r.getDamager(); Player atirador = (Player) bola.getShooter(); atirador.sendMessage("Bateu com wither em: " + r.getEntity()); s.damage(1.0); s.addPotionEffect(new PotionEffect(PotionEffectType.WITHER, 100, 1)); s.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 140, 1)); } But i'm not able to differ both using the metaData "cabeca" Could anybody point me forward? Also tried using EntityExplodeEvent instead of EntityDamageByEntityEvent Also tried checking if it was instanceof Fireball No success. EDIT by Moderator: merged posts, please use the edit button instead of double posting.