Class UpdateChecker

java.lang.Object
net.ssterling.updatechecker.UpdateChecker

public class UpdateChecker extends Object
The UpdateChecker class consists of tools to check for an update to a Spigot plugin, as well as the information needed to do such.
Since:
1.0.0
Version:
1.1.1
Author:
Seth Price
  • Constructor Details

    • UpdateChecker

      public UpdateChecker(String project_id, String current_version)
      Constructs an UpdateChecker object.
      Parameters:
      project_id - The project ID of the plugin, found in the project URL.
      current_version - The current version of the plugin.
  • Method Details

    • check

      public static String check() throws Throwable
      Checks for updates to the plugin.
      Returns:
      new version if update exists, null otherwise
      Throws:
      Throwable
      Since:
      1.0.0