feat: cancellable events, expanded API, and PlaceholderAPI support#3
Open
derrickmehaffy wants to merge 2 commits into
mainHyperSystems-Development/HyperEssentials:mainfrom
feat/api-events-placeholdersHyperSystems-Development/HyperEssentials:feat/api-events-placeholdersCopy head branch name to clipboard
Open
feat: cancellable events, expanded API, and PlaceholderAPI support#3derrickmehaffy wants to merge 2 commits intomainHyperSystems-Development/HyperEssentials:mainfrom feat/api-events-placeholdersHyperSystems-Development/HyperEssentials:feat/api-events-placeholdersCopy head branch name to clipboard
derrickmehaffy wants to merge 2 commits into
mainHyperSystems-Development/HyperEssentials:mainfrom
feat/api-events-placeholdersHyperSystems-Development/HyperEssentials:feat/api-events-placeholdersCopy head branch name to clipboard
Conversation
… support
EventBus Infrastructure:
- Add Cancellable interface with cancel reason support
- Upgrade EventBus with publishCancellable() for pre-event interception
Events (58 classes across 7 modules):
- homes: set, delete, teleport, share, unshare, setDefault
- warps: set, delete, teleport
- spawns: set, delete, teleport
- kits: claim, create, delete
- moderation: ban, unban, mute, unmute, kick, warn
- teleport: TPA send/accept/deny, back, RTP
- utility: fly, god, AFK toggle
All with cancellable PreEvent + immutable PostEvent record pairs.
Public API expanded from 12 to 80+ methods:
- Home, Kit, Moderation, Utility sections added
- Warp, Spawn, Back, TPA sections expanded
- EventBus access: registerEventListener/unregisterEventListener
- Manager accessors for advanced plugin use
PlaceholderAPI integration (~37 placeholders):
- HyperEssentialsExpansion for PAPI (%%essentials_*%%)
- WiFlowExpansion for WiFlow ({essentials_*})
- Bridge classes with runtime detection and reflection
- Conditional WiFlow compilation in build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
./gradlew :HyperEssentials:shadowJar)%essentials_home_count%, etc.)HomeSetPreEvent, verify/sethomeis blockedHomeSetEvent, verify it fires after successful/sethome🤖 Generated with Claude Code