Enchantment Activate Event
class EnchantmentActivateEvent(val player: Player, val key: NamespacedKey, val level: Int) : Event, Cancellable
This event is called when a player activates an enchantment.
Parameters
player
The player who activated the enchantment.
key
The key of the enchantment that was activated.