1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skript Update Checker

Discussion in 'Skript' started by ShadowLifeMC, Jul 31, 2020.

  1. ShadowLifeMC

    ShadowLifeMC Member

    Joined:
    Jul 20, 2020
    Messages:
    5
    Likes Received:
    0
    Ok, so before you say anything, I read the forums. I want to create an update checker for my skript. It will check if the skript is outdated, and if it is, then it will broadcast "Skript Outdated!" or something.
    I read this post: https://forums.skunity.com/threads/how-do-i-make-my-script-check-for-updates.7100/
    The problem is that Pastebin does not work in my country, and if I use Hastebin, I can't update the paste without changing the link.

    So.. is there an alternative way to check for updates? Please help! I need this urgently.
    --- Double Post Merged, Jul 31, 2020, Original Post Date: Jul 31, 2020 ---
    bump...
    --- Double Post Merged, Aug 2, 2020 at 6:42 PM ---
    Still need help with this...
     
  2. egamer3000

    egamer3000 Active Member

    Joined:
    Nov 25, 2019
    Messages:
    37
    Likes Received:
    7
    Step 1) Create a note on some site set to never expire with the newest version of your script (sign up for it so you can edit it. I'd recommend using raw.GitHub though, so you can easily change it.)
    Step 2) Add this code:
    Code (Text):
    1. options:
    2.   ver: (version number)
    3. on load:
    4.   set {_v} to text from "(link to the new version[s])"
    5.   if {_v} > {@ver}:
    6.     broadcast "&cOutdated version of (your skript name)!"
     
  3. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    657
    Likes Received:
    42
Loading...