Package com.ranull.graves.util
Class UpdateUtil
java.lang.Object
com.ranull.graves.util.UpdateUtil
Utility class for checking the latest version of a resource from SpigotMC.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetLatestVersion(int resourceId) Gets the latest version of a resource from SpigotMC.
-
Constructor Details
-
UpdateUtil
private UpdateUtil()
-
-
Method Details
-
getLatestVersion
Gets the latest version of a resource from SpigotMC.- Parameters:
resourceId- The ID of the resource on SpigotMC.- Returns:
- The latest version of the resource as a String, or null if an error occurs.
-