Discussion in 'Plugin Development' started by civ77, Oct 7, 2012.
How would I get the entity launching a projectile as opposed to the entity being launched?
e.getProjectile().getShooter() or something.
Alternatively, in EntityDamageByEntityEvent, event.getDamager() will return a Projectile. After casting, you can call .getShooter() as well.
But make sure that getShooter() is not null, cause dispensers and other plugins will fire arrows without a entity.
Separate names with a comma.