[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 |