Skip to content

Conversation

Hugman76
Copy link
Member

@Hugman76 Hugman76 commented Aug 7, 2023

Currently, we only have an event for block being broken by a player, but there is no way to detect block being broken for other reasons.

I added the BlockBreakEvent#WORLD event to detect any block being broken for any reason. The previous event has been marked as deprecated as it has been renamed BlockBreakEvent#PLAYER for clarity.

@Patbox
Copy link
Member

Patbox commented Aug 8, 2023

I'm not sure if this will be backwards compatible (ABI-wise), so you should keep the legacy EVENT type equal to previous one (Keep interface methods on old one and make Player extend it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants