-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
None
-
Affects Version/s: None
-
None
-
This server is running CraftBukkit version 4394-Spigot-60c9969-2b9a094
-
Yes
Hello the ProjectileHitEvent is not triggered when the projectile hit an entity.
It works fine for blocks.
Small testing plugin attached with the following method.
@EventHandler
public void onProjectileHitEvent(ProjectileHitEvent e) {
Entity projectile = e.getEntity();
Entity target;
Bukkit.getServer().getConsoleSender().sendMessage("ProjectileHitEvent");
if ((target = e.getHitEntity()) != null && !(target instanceof Player)) {
Bukkit.getServer().getConsoleSender().sendMessage("ProjectileHitEvent: HitEntity");
}
}