Enum Class UpdateChecker.UpdateReason

java.lang.Object
java.lang.Enum<UpdateChecker.UpdateReason>
rocks.gravili.notquests.paper.managers.UpdateChecker.UpdateReason
All Implemented Interfaces:
Serializable, Comparable<UpdateChecker.UpdateReason>, Constable
Enclosing class:
UpdateChecker

public static enum UpdateChecker.UpdateReason extends Enum<UpdateChecker.UpdateReason>
A constant reason for the result of UpdateChecker.UpdateResult.
  • Enum Constant Details

    • NEW_UPDATE

      public static final UpdateChecker.UpdateReason NEW_UPDATE
      A new update is available for download on SpigotMC.
    • COULD_NOT_CONNECT

      public static final UpdateChecker.UpdateReason COULD_NOT_CONNECT
      A successful connection to the Spigot API could not be established.
    • INVALID_JSON

      public static final UpdateChecker.UpdateReason INVALID_JSON
      The JSON retrieved from Spigot was invalid or malformed.
    • UNAUTHORIZED_QUERY

      public static final UpdateChecker.UpdateReason UNAUTHORIZED_QUERY
      A 401 error was returned by the Spigot API.
    • UNRELEASED_VERSION

      public static final UpdateChecker.UpdateReason UNRELEASED_VERSION
      The version of the plugin installed on the server is greater than the one uploaded to SpigotMC's resources section.
    • UNKNOWN_ERROR

      public static final UpdateChecker.UpdateReason UNKNOWN_ERROR
      An unknown error occurred.
    • UNSUPPORTED_VERSION_SCHEME

      public static final UpdateChecker.UpdateReason UNSUPPORTED_VERSION_SCHEME
      The plugin uses an unsupported version scheme, therefore a proper comparison between versions could not be made.
    • UP_TO_DATE

      public static final UpdateChecker.UpdateReason UP_TO_DATE
      The plugin is up to date with the version released on SpigotMC's resources section.
  • Method Details

    • values

      public static UpdateChecker.UpdateReason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UpdateChecker.UpdateReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null