[SPIGOT-2348] EntityTeleportEvent is not working properly when player is using bow to shoot an Enderman Created: 03/Jun/16 Updated: 12/Jun/16 Resolved: 12/Jun/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | Mars Tan | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | event | ||
Environment: |
java 8 |
Description |
I implement the method below. @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) |
Comments |
Comment by md_5 [ 12/Jun/16 ] |
Look I've fixed this in the sense that the teleport is now properly cancelled. |
Comment by Mars Tan [ 03/Jun/16 ] |
You are right, but since this event is cancelled, Enderman should not teleport to somewhere else and should be damaged by the arrow. |
Comment by Black Hole [ 03/Jun/16 ] |
You forgot the specify what you mean by "not working properly". The arrow takes some time in the air, so the Enderman will try to teleport multiple times. |