WarpPlayerEvent

The Warp Player Event is an event called when a Player is teleported with Warp. To see entities teleported with Warp, see WarpEntityEvent.

Description
The WarpPlayerEvent is a class that adds two local variables: a list of valid other locations the Warp function has found close by, and the EnchantmentLevel information (since it directly extends the PlayerTeleportEvent).

Constructor
WarpPlayerEvent(Player player, Location from, Location to, List otherLocations, int level)
 * // Player player - the player being teleported
 * // Location from - the location the player is currently
 * // Location to - the location where the player will teleport
 * // List otherLocations - the other valid locations found with Warp
 * // int level - the level of Warp on the player's leggings

Implements
None

Extends
PlayerTeleportEvent

List getOtherLocations
Returns the list of other valid locations near the entity to teleport to

EnchantmentLevel getEnchantment
Returns the enchantment and level information being used by this event