Class UpdateUtil

java.lang.Object
com.ranull.graves.util.UpdateUtil

public final class UpdateUtil extends Object
Utility class for checking the latest version of a resource from SpigotMC.
  • Constructor Details

    • UpdateUtil

      public UpdateUtil()
  • Method Details

    • getLatestVersion

      public static String getLatestVersion(int resourceId)
      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.