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
A constant reason for the result of
UpdateChecker.UpdateResult
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA successful connection to the Spigot API could not be established.The JSON retrieved from Spigot was invalid or malformed.A new update is available for download on SpigotMC.A 401 error was returned by the Spigot API.An unknown error occurred.The version of the plugin installed on the server is greater than the one uploaded to SpigotMC's resources section.The plugin uses an unsupported version scheme, therefore a proper comparison between versions could not be made.The plugin is up to date with the version released on SpigotMC's resources section. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateChecker.UpdateReason
Returns the enum constant of this class with the specified name.static UpdateChecker.UpdateReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEW_UPDATE
A new update is available for download on SpigotMC. -
COULD_NOT_CONNECT
A successful connection to the Spigot API could not be established. -
INVALID_JSON
The JSON retrieved from Spigot was invalid or malformed. -
UNAUTHORIZED_QUERY
A 401 error was returned by the Spigot API. -
UNRELEASED_VERSION
The version of the plugin installed on the server is greater than the one uploaded to SpigotMC's resources section. -
UNKNOWN_ERROR
An unknown error occurred. -
UNSUPPORTED_VERSION_SCHEME
The plugin uses an unsupported version scheme, therefore a proper comparison between versions could not be made. -
UP_TO_DATE
The plugin is up to date with the version released on SpigotMC's resources section.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-