isExplicitDamage

public static boolean isExplicitDamage(EntityDamageByEntityEvent event)

Whether a plugin applied this hit on purpose (a burn, an arc, a counter) rather than the player swinging or shooting. Input owners use it so programmatic damage is never read as an attack.