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

Adds ability to listen to cancelled events #5896

Closed
wants to merge 6 commits into from

Conversation

sovdeeth
Copy link
Member

@sovdeeth sovdeeth commented Aug 9, 2023

Description

Adds the ability to listen to events cancelled by other plugins by using on all <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 via SkriptEvent#shouldIgnoreCancelled().

Also cleans up SkriptEventHandler#check() a bit more.

Edit: Converted to draft to await the merging of an event parsing rework by Tud (#5900). Current solutions have too much danger of polluting the event's tags or are very hacky.


Target Minecraft Versions:
Requirements:
Related Issues: #5891

@AyhamAl-Ali AyhamAl-Ali added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Aug 9, 2023
@AyhamAl-Ali
Copy link
Member

For another PR - Note this requires updating docs event pattern to add [all]

@AyhamAl-Ali AyhamAl-Ali added the require docs update A PR that requires Skript docs to be updated to reflect the related changes. label Aug 9, 2023
@sovdeeth sovdeeth marked this pull request as draft August 9, 2023 22:56
@Moderocky Moderocky force-pushed the master branch 3 times, most recently from bd134d0 to 3f08853 Compare September 16, 2023 16:59
@sovdeeth sovdeeth changed the base branch from master to dev/feature September 18, 2023 04:15
@sovdeeth
Copy link
Member Author

Closing in favour of #6207

@sovdeeth sovdeeth closed this Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. require docs update A PR that requires Skript docs to be updated to reflect the related changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants