Home›Java›Mods›getVersion() | API
getVersion() | API
ModsJava

getVersion() | API

Java mod listed for Minecraft 1.8–1.13. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
[​IMG]
getVersion() is a simple api which allows you to check the version of any resource on spigotmc.org using only one line of code.


[​IMG] ​
Terms of Use
  1. You are not allowed to change anything unless i gave permission.
  2. You are not allowed to reupload or resell this script.
  3. You are not allowed to take credit for this script.

[​IMG] ​
  1. Install Skript.
  2. Install Reqn.
  3. Type "/sk reload all" or restart your server.


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:
Code (Text):
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:
Spoiler: Examples
Code (Text):
command /example:
    trigger:
        getVersion(1010)
        message "%{Version}%"

# Sends the version of the resource with the ID "1010"
Code (Text):
on load:
    getVersion(1010)
    if {Version} is not "1.0":
        message "Update found!" to console


GERMAN TRANSLATION

Spoiler: German / Deutsch
[​IMG]
getVersion() ist eine simple API, die es erlaubt, die Version von jedem Plugin auf SpigotMC.org mit einer Zeile Code zu erhalten.

[​IMG] ​
Terms of Use
  1. Du darfst nichts verändern, es sei denn ich erlaube es.
  2. Du darfst dieses Skript nicht erneut hochladen oder verkaufen.
  3. Du darfst dieses Skript nicht als deine Arbeit ausgeben.

[​IMG] ​

  1. Installiere Skript.
  2. Installiere Reqn.
  3. Führe "/sk reload all" aus oder starte den Server neu.


Wie kann ich die Version eines Plugins bekommen?
Um die Version von einem Plugin zu erhalten, musst du folgende Funktion in dein Skript einbauen:
Code (Text):
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:
Spoiler: Beispiele
Code (Text):
command /beispiel:
    trigger:
        getVersion(1010)
        message "%{Version}%"

# Sendet die Version des Plugins mit der ID "1010"
Code (Text):
on load:
    getVersion(1010)
    if {Version} is not "1.0":
        message "Update gefunden!" to console
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

getVersion() | API is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 155 times (via Spigot). Download it and open it directly in the game.

Explore more