RhysB / Project-Poseidon

A CraftBukkit CB1060 fork for Beta 1.7.3 fixing bugs and adding basic features
https://discord.gg/FwKg676
GNU General Public License v3.0
87 stars 31 forks source link

EntityDamageByEntityEvent does not trigger #106

Closed limestick closed 1 month ago

limestick commented 1 month ago

Created two EventHandler functions in a single Listener class. While EntityDamageEvent triggers without fail, EntityDamageByEntityEvent never triggers, even while the player gets damaged by a Monster.

Tested on source code: https://github.com/limestick/SkillIssue/tree/poseidon-106

limestick commented 1 month ago

Solved it by casting the EntityDamageEvent to EntityDamageByEntityEvent in my onEntityDamage function.