Bukkit/Bukkit — pull request #505 by craftycreeper (2012-01-29 20:29:42+00:00)
Title: Add EndermanTeleportEvent.

Fires whenever an Enderman teleports and allows checking of to/from location. I wrote this to fix BUKKIT-366 (https://bukkit.atlassian.net/browse/BUKKIT-366), as I need the feature for a plugin I'm working on. This is my first foray into Bukkit modifications, so any constructive criticism would be very helpful.

The event can be a bit spammy when the an Enderman starts going crazy in the rain, but hopefully this situation should always resolve itself quickly via the Enderman's death or teleportation to a dry spot (unless you just blindly cancel every teleport, forcing the Enderman to stay out in the rain and continue to try to escape).