diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 4cc43fbd..5c85f9cd 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -1306,6 +1306,8 @@ public final class JobsPaymentListener implements Listener { if (!(event.getEntity().getLastDamageCause() instanceof EntityDamageByEntityEvent)) { killer = entityLastDamager.getIfPresent(event.getEntity().getUniqueId()); + } else if(event.getEntity().getLastDamageCause().getCause() == EntityDamageEvent.DamageCause.PROJECTILE) { + killer = event.getEntity().getLastDamageCause().getDamageSource().getCausingEntity(); } else { killer = ((EntityDamageByEntityEvent) event.getEntity().getLastDamageCause()).getDamager(); }