[SPIGOT-2559] CLONE - EntityDamageEvent not executing for anything other than players with setHealth(0)? Created: 29/Jul/16  Updated: 30/Jul/16  Resolved: 30/Jul/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Tom Hoogstra Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.10.2

Issue Links:
Cloners
clones SPIGOT-2465 EntityDamageEvent not executing for a... Resolved

 Description   

Either my shit is completely toasted, or something has went wrong with recent versions.

My event is properly registered, other events in the same class execute fine, but if I use the following code

@EventHandler
public void onDeath(EntityDeathEvent e){
   Bukkit.broadcastMessage("test");
}

"test" will only be broadcasted when a player dies. I have killed countless sheep, switched classes that the listener is in, everything.



 Comments   
Comment by Tom Hoogstra [ 30/Jul/16 ]

Yeah i did, forgot to rename it again when i made a clone Is marked as fixed now so ill give it a crack

Originally I did make a thread on the forum but got the same result, so I just made my own temporary fix by calling the event myself

Comment by Max Peters [ 29/Jul/16 ]

Well...
@EventHandler
public void onDeath(EntityDeathEvent e){
Bukkit.broadcastMessage("test");
}

Also: Use the forums for help!

€dit: Sorry, just saw that the Topic is saying "DamageEvent" and you seem to mean "DeathEvent" - still you should probably figure this out via IRC/Forums and form this into a nice bug report if it acutally is one.

Comment by Tom Hoogstra [ 29/Jul/16 ]

Only happens when using setHealth(0) on an entity, latest spigot version.

Generated at Thu Mar 27 17:52:56 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.