FrequentFlyerEvent

The Frequent Flyer Event is an event called when an elytra with FrequentFlyer is equipped, removed, or "breaks".

Description
The FrequentFlyerEvent is a class that gives players access to creative flight. It comes with three FFTypes: ADD_FLIGHT, REMOVE_FLIGHT, and BREAK_ELYTRA. BREAK_ELYTRA is called if the elytra has less than 32 durability.

Constructor
FrequentFlyerEvent(Player who, int level, FFType type)
 * // Player who - the player with the elytra
 * // int level - the level of FrequentFlyer being used
 * // FFType type - the kind of event called

Implements
None

Extends
ESPlayerToggleFlightEvent[2.2.3+]

ESPlayerEvent[2.2.0-2.2.2]

FFType getType
Returns the FFType of the event (ALLOW_FLIGHT, REMOVE_FLIGHT, BREAK_ELYTRA)