Update Function

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Untuned

Member
Aug 4, 2017
1
0
1
22
I'm pretty sure you can do this with existing addons.

I'd like some Skript code I can use that will check a pastebin for a "version number". If the version number is higher than the current one, download it and replace the skript, saying "Use /sk reload" to reload the skript. If they are the same or lower, do nothing.

Note: I'm only looking for Skript code and what addons are used.
 
You can use the skutilities expression `url contents of "url"` which returns a list of each line in the url. Parse the first element of the list as a number and do your things. The URL needs to be raw content btw.