Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add generic block broken event #44

Open
wants to merge 1 commit into
base: 1.20
Choose a base branch
from

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)

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

Successfully merging this pull request may close these issues.

2 participants