[SPIGOT-1918] EnderDragon has no death event Created: 13/Mar/16  Updated: 23/Mar/16  Resolved: 23/Mar/16

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

Type: Bug Priority: Minor
Reporter: Tom Miller Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: 1.9


 Description   

Neither EntityDeathEvent, nor EntityCreatePortalEvent are fired when the Ender Dragon is slain. As such, virtually the only hacky way to tell the dragon was killed is to check an EntityDamageByEntityEvent and see if the resulting dragon health is <= 0, which is poopy.



 Comments   
Comment by Matthew Steglinski [ 14/Mar/16 ]

I'm unable to recreate your issue with EntityDeathEvent. With the following code:

@EventHandler
public void entitydeath(EntityDeathEvent event) {
    System.out.print("Entity death: " + event.getEntityType());
    System.out.print("Entity: " + event.getEntity());
}

Output:

[11:59:52 INFO]: Entity death: ENDER_DRAGON
[11:59:52 INFO]: Entity: CraftEnderDragon
Comment by Black Hole [ 13/Mar/16 ]

Related to SPIGOT-1812

Generated at Sat Dec 13 15:19:43 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.