-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Adds ability to listen to cancelled events #6207
Conversation
Adds functionality to allow events to listen to cancelled events only, uncancelled only (previous behavior), and both. Deprecates listenCancelled (breaking change for EvtResurrect)
Co-authored-by: _tud <98935832+UnderscoreTud@users.noreply.github.com>
Removes breaking change from EvtResurrect. Refactors some of SkriptEventHandler Errors for events that don't support cancelling Bug fix for data leak via EventData
…led. Reduce local complexity in SkriptEventHandler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code is lovely, can we add tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool beans
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be good, just a few minor thoughts
I need to stop using the browser for merge conflicts
Description
Continuation of #5896.
Adds the ability to listen to events cancelled by other plugins by using
on all <event>
,on any <event>
, andon cancelled <event>
.Previously, Skript would simply return before executing any triggers if the event was cancelled. Now it checks each trigger to see if each one is ignoring or listening to cancelled events based on the SkriptEvent's ListeningBehavior.
This should maintain current behavior without breaking changes.
Also fixes a bug with #5900 where event priority would leak from one event to following events.
Docs update:
Target Minecraft Versions: any
Requirements: none
Related Issues: #5891 #5908