EdPrisonPossibleEnchantTriggerEvent

Event when an enchant is triggered.

/**
 * Gets the player associated with the event.
 *
 * @return The player triggering the possible 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 that may trigger.
 *
 * @return The name of the enchant.
 */
public String getEnchant() {
    // Method implementation
}

/**
 * Gets the percentage chance of the enchant triggering.
 *
 * @return The percentage chance.
 */
public double getPercent() {
    // Method implementation
}

/**
 * Sets the percentage chance of the enchant triggering.
 *
 * @param percent The new percentage chance.
 */
public void setPercent(double percent) {
    // Method implementation
}

/**
 * Adds to the percentage chance of the enchant triggering.
 *
 * @param percent The percentage to add.
 */
public void addPercent(double percent) {
    // Method implementation
}

/**
 * Subtracts from the percentage chance of the enchant triggering.
 *
 * @param percent The percentage to subtract.
 */
public void removePercent(double percent) {
    // Method implementation
}

Last updated