ESPlayerToggleFlightEvent

The Enchantment Solution Player Toggle Flight Event is an event called when a player toggles flying.

Description
The ESPlayerToggleFlightEvent is a class that adds one local variable: an enchantment variable to keep track of the custom enchantment and level information.

Constructor
ESPlayerToggleFlightEvent(Player who, boolean toggle, EnchantmentLevel enchantment)
 * // Player who - the player involved in the event
 * // boolean toggle - whether flight is going on or off
 * // EnchantmentLevel enchantment - the enchantment and level information

Implements
Cancellable

Extends
PlayerToggleFlightEvent

EnchantmentLevel getEnchantment
Returns the enchantment and level modifying the player/player event