Enum UpdateChecker.UpdateReason

java.lang.Object
java.lang.Enum<UpdateChecker.UpdateReason>
plugily.projects.buildbattle.utils.UpdateChecker.UpdateReason
All Implemented Interfaces:
Serializable, Comparable<UpdateChecker.UpdateReason>, java.lang.constant.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 SpiGet API could not be established.
    • INVALID_JSON

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

      public static final UpdateChecker.UpdateReason UNAUTHORIZED_QUERY
      A 401 error was returned by the SpiGet 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static UpdateChecker.UpdateReason valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null