> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/developer-api/events/edprisonpossibleenchanttriggerevent.md).

# EdPrisonPossibleEnchantTriggerEvent

Event when an enchant is triggered.

```java
/**
 * 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
}
```
