Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add vault change state event #12069

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Warriorrrr
Copy link
Member

Closes #11679

Adds an event for when a vault block changes its state, allowing plugins to get and/or modify the resulting vault state (though doing something like forcefully setting the vault state to ACTIVE will cause the event to be thrown every second if there's no player nearby).

I'm not completely sure about having a getPlayer, because it requires us to pass the player instance through the unlock method and may not be completely accurate for the case where the vault becomes active. Without it, the diff would be less complex but the event would also be less useful.

@Warriorrrr Warriorrrr requested a review from a team as a code owner February 5, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Awaiting final testing
Development

Successfully merging this pull request may close these issues.

2 participants