EdPrisonEnchantTriggerEvent

Event when an enchant is triggered.

/**
* Gets the player associated with the event.
*
* @return The player triggering the enchant.
*/
public Player getPlayer() {
   // Method implementation
}

@Override
public boolean isCancelled() {
   return isCancelled;
}

@Override
public void setCancelled(boolean cancelled) {
   this.isCancelled = cancelled;
}

/**
* Gets the name of the enchant triggering the event.
*
* @return The name of the enchant.
*/
public String getEnchant() {
   // Method implementation
}

Last updated