AttributeEvent

The Attribute Event is an event called when an Armor Equip Event fires with an enchantment that adds an attribute to the player.

Description
The AttributeEvent gets called on multiple enchantments, including Armored, Quick Strike, Life, Gung Ho, and Toughness. What happens after the event depends on which enchantment is being set. Each enchantment checks for a different slot (Toughness handles all armor slots) as well as the type of attribute being added, the uuid, and the operation.

An Attribute event either acts as an equip event or an unequip event; although it can handle both at once, it generally does not want to do this.

Constructor
AttributeEvent(Player who, EnchantmentLevel level, String removeModifier, String addModifier)
 * // Player who - the player getting the attributes
 * // EnchantmentLevel level - the custom enchantment and level of the enchantment being equipped/unequipped
 * // String removeModifier - the name of the modifier being removed
 * // String addModifier - the name of the modifier being added

Implements
None

Extends
ESPlayerEvent

String getRemoveModifier
Returns the name of the attribute to remove.

String getAddModifier
Returns the name of the attribute to add.