> 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/edprisonblockbreakevent.md).

# EdPrisonBlockBreakEvent

Optimised block break event done by EdPrison. This event will be triggered every 5 seconds and will send the blocks broken in the last 5 seconds.

```java
/**
* 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 amount of blocks broken by the player.
*
* @return The amount of blocks.
*/
public double getBlocks() {
   // Method implementation
}
```
