-
-
Notifications
You must be signed in to change notification settings - Fork 371
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 Cancellable section #5691
🚀 Add Cancellable section #5691
Conversation
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.
i accidentally approved previously 🤣
bd134d0
to
3f08853
Compare
@@ -603,6 +609,17 @@ private String generateEvent(String descTemp, SkriptEventInfo<?> info, @Nullable | |||
String[] keywords = info.getKeywords(); | |||
desc = desc.replace("${element.keywords}", keywords == null ? "" : Joiner.on(", ").join(keywords)); | |||
|
|||
// Cancellable | |||
boolean cancellable = false; | |||
for (Class<? extends Event> event : info.events) { |
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.
I wonder if it might be good to have a common isCancellable method between this and EffCancelEvent
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.
Good idea!
Description
🚀 Add Cancellable section
Preview
nvm about testing values
Target Minecraft Versions:
Requirements:
Related Issues: