API [Deleted] Skunity Update Checker

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

Status
Not open for further replies.

blake0201

Member
Jan 27, 2017
12
0
1
23
blake0201 submitted a new resource:

Skunity Update Checker - Check your resources version number on skunity and notifies users about an update.

NOTE: I might change the API URL to a dedicated URL so I will notify users 3 days before this change occurs.

Skunity Update Checker checks the version number of your resource and sends a notification to the user when they join if the resource has an update.

To use the update checker in your skript you need SkUtilites.
Example:
Code:
on skript load:
    set {resourcename} to "Official [Skript 2.2] MP...

Read more about this resource...
 
Your resource ID is found in the URL of the resource. So in https://forums.skunity.com/resources/official-skript-2-2-mp-core-remake-1-8-8.54/. "official-skript-2-2-mp-core-remake-1-8-8.54" is the resource ID. This is the exact same for spigotmc.org Note: When you change the name of your resource it also changes the resource ID.
.

Actually, the resource id is only the number after the . (dot). So you can access it with https://forums.skunity.com/resources/54/
 
Actually, the resource id is only the number after the . (dot). So you can access it with
https://forums.skunity.com/resources/54/
Ah, thanks! I'll update my API to support that.

EDIT: Alright. Done! I've made it so it doesn't depend on it the title. Only the ID.

[doublepost=1498186893,1498186473][/doublepost]
Actually, the resource id is only the number after the . (dot). So you can access it with https://forums.skunity.com/resources/54/
Ok, so just a quick question. Does this count as an API or a Skript Tool? How would this be categorised?
 
Last edited by a moderator:
Ok, so just a quick question. Does this count as an API or a Skript Tool? How would this be categorized?
It can be in API, since it is directly related to a resource only. A Skript tool would be something to help to code (like some highlight syntax or a Skript IDE).
 
47bf456d38e4dcae89c846f32c88c790.png

https://gyazo.com/47bf456d38e4dcae89c846f32c88c790
lol, a line of php/html code
 

Yes? That's what it does. The skript fetches the text from the server that gets the plugin version from Skunity. Then the skript determines if the version that their running on the server is the same thats on skunity. Then if it isn't it sends a message to the OP on the server saying they need to update the skript.
 
Status
Not open for further replies.