Solved How do i make my script check for updates?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

KarimAKL

Active Member
Apr 20, 2018
50
2
0
29
The title pretty much says it all. :emoji_stuck_out_tongue: I have tried looking around and i couldn't find anything that seemed to work for me but i did make this: https://pastebin.com/raw/3EFj2Vma for the 1.0 version of my script.

Skript Version: 2.1.2
Minecraft Version: 1.8.8
Addons: SkQuery 3.21.4
 
You can do something like this:
code_language.skript:
options:
    version: 1.0

on load:
    text from "https://pastebin.com/raw/3EFj2Vma" is not "{@version}"
    send "Version outdated! Download the newest version on <some link here>" to console
 
You can do something like this:
code_language.skript:
options:
    version: 1.0

on load:
    text from "https://pastebin.com/raw/3EFj2Vma" is not "{@version}"
    send "Version outdated! Download the newest version on <some link here>" to console
Okay thanks. :emoji_slight_smile: I just tried this:
code_language.skript:
On load:
    set {test} to "1.0"
    if text from "https://pastebin.com/raw/3EFj2Vma" is not "%{test}%":
        message "&cOutdated version! Download the newest version here: (put link here)" to console
    else:
        message "&aYou are up to date!" to console
And it seems to work, so if i want to make an update i would just edit the pastebin, right? (do you know if it changes the link after or not?) EDIT: I just tried editing it and it doesn't seem to change the link but the text when opening the link hasn't changed but i just think it's because it'll take a little while, anyway thanks. :emoji_slight_smile:
 
Last edited:
Are you sure you were logged in on Pastebin and you were editing the right paste?
 
Status
Not open for further replies.