-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Update to world events #5114
Update to world events #5114
Conversation
Removes world load/unload/init/save from simpleevents Adds a save world effect
I haven't merged this as of yet as I'm unsure if it'll be worth it but should I also include an effect to I was planning to add an effect for |
I don't think you need |
Alright I'll remove it in a bit once I finish the breedable stuff |
This will be the first batch, anything not updated I'll edit manually on my end Co-authored-by: LimeGlass <[email protected]>
Finished off the requested changes that weren't merged with first batch along with switch some other things around
Missed a requested change
Some requested changes Syntax change for EffUnloadWorld Changed from World[] to Literal<World>
Co-authored-by: LimeGlass <[email protected]>
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.
Nice additions :)
Instead of having four event classes though, I think you should just do something like https://github.com/SkriptLang/Skript/blob/master/src/main/java/ch/njol/skript/events/EvtItem.java where multiple events are registered in the same file (so that they use the same check method) since these check methods are very similar
Combined all world events into a single file, "EvtWorld" Did the requested changes for both effects Added a warning about possibly freezing a server with the save effect Co-Authored-By: Patrick Miller <[email protected]>
Co-authored-by: Ayham Al Ali <[email protected]>
…hancment/worldupdates
- Removed 'getAnd' - Removed plurality
Latest commit remove the If a change is wanted to add it back I have zero intention to 'getAnd' calls |
Sorry I'm really confused about what you're trying to say here |
Fixed? yes, lazily to be fair. I basically just removed it, Skript treats |
Alright now that I understood you weren't against Orrr not give me a bit intellij is breaking |
…hancment/worldupdates
Alright so updated my branch and it broke it as |
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.
One small change
Co-authored-by: sovdee <[email protected]>
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.
just some concerns about syntax consistency
Address his desired reviews Co-authored-by: Patrick Miller <[email protected]>
Description
This PR adds
of %worlds%
into theWorldSaveEvent
,WorldLoadEvent
,WorldUnloadEvent
, andWorldInitEvent
I've also added a new effect for manually saving worlds
save all worlds save [the] %worlds%
Target Minecraft Versions: any
Requirements: N/A
Related Issues: #5113 #3656