Auto Update and every detail required #4652
TheLimeGlass
started this conversation in
General
Replies: 1 comment
-
At the start of the onEnable it could check the servers current Minecraft version and only pass with supported versions, to stop errors like that happening, I love this idea though! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Auto Update for Skript and every detail that would be needed in order for this feature to actually be possible.
Configuration:
Setup:
Startup:
Might need to have a separate plugin to ensure Skript actually loads, because if Skript doesn't load that could be critical for the server. Say the latest version doesn't support their version of Minecraft because we dropped it.
We should also create a txt file within the Skript jar that tells the auto updater how to deal with updating from one version to another. This way we can set custom systems to execute when updating, such as the way player variables are serialized to the database, we could have a dedicated class to rewrite them rather than it being baked into the actual serializer code that exists now. Or that the auto update version isn't supported on this MC version, so cancel auto update. Etc.
Making all of which in a package org.skriptlang.skript.updater and have them able to be used by SkriptAddons with a well engineered API. Also have a SkriptAutoUpdateStartEvent, SkriptAutoUpdateSuccessEvent and SkriptAutoUpdateFailedEvent event. In addition to the already existing update checker a SkriptUpdateFoundEvent.
Beta Was this translation helpful? Give feedback.
All reactions