getVersion() is a simple api which allows you to check the version of any resource on spigotmc.org using only one line of code.

Terms of Use
- You are not allowed to change anything unless i gave permission.
- You are not allowed to reupload or resell this script.
- You are not allowed to take credit for this script.

How to get the version of a resource?
To get the version of a resource, you have to use the following function in your script:
getVersion(ID Integer)
The last received version will be saved in the variable {Version} and so you can use it.
How to get the ID of a resource?
To get the ID of a resource, you have to copy it from the link.
( https://spigotmc.org/resources/asyncworldedit-premium.9661/ --> 9661)
Examples:
Examples
command /example:
trigger:
getVersion(1010)
message "%{Version}%"
# Sends the version of the resource with the ID "1010"on load:
getVersion(1010)
if {Version} is not "1.0":
message "Update found!" to consoleGERMAN TRANSLATION
German / Deutsch

getVersion() ist eine simple API, die es erlaubt, die Version von jedem Plugin auf SpigotMC.org mit einer Zeile Code zu erhalten.

Terms of Use
- Du darfst nichts verändern, es sei denn ich erlaube es.
- Du darfst dieses Skript nicht erneut hochladen oder verkaufen.
- Du darfst dieses Skript nicht als deine Arbeit ausgeben.

Wie kann ich die Version eines Plugins bekommen?
Um die Version von einem Plugin zu erhalten, musst du folgende Funktion in dein Skript einbauen:
getVersion(ID Integer)Die letzte erhaltende Version wird in der Variable {Version} gespeichert und kann somit genutzt werden.
Wie bekomme ich die ID von einem Plugin?
Um die ID eines Plugins zu bekommen, musst die sie aus dem Link kopieren.
( https://spigotmc.org/resources/asyncworldedit-premium.9661/ --> 9661)
Beispiele:
Beispiele
command /beispiel:
trigger:
getVersion(1010)
message "%{Version}%"
# Sendet die Version des Plugins mit der ID "1010"on load:
getVersion(1010)
if {Version} is not "1.0":
message "Update gefunden!" to consoleSimilar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta