public static enum UpdateChecker.UpdateReason extends Enum<UpdateChecker.UpdateReason>
UpdateChecker.UpdateResult.| Enum Constant and Description |
|---|
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.
|
NEW_UPDATE
A new update is available for download on SpigotMC.
|
UNAUTHORIZED_QUERY
A 401 error was returned by the Spigot API.
|
UNKNOWN_ERROR
An unknown error occurred.
|
UNRELEASED_VERSION
The version of the plugin installed on the server is greater than the one
uploaded to SpigotMC's resources section.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static UpdateChecker.UpdateReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdateChecker.UpdateReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateChecker.UpdateReason NEW_UPDATE
public static final UpdateChecker.UpdateReason COULD_NOT_CONNECT
public static final UpdateChecker.UpdateReason INVALID_JSON
public static final UpdateChecker.UpdateReason UNAUTHORIZED_QUERY
public static final UpdateChecker.UpdateReason UNRELEASED_VERSION
public static final UpdateChecker.UpdateReason UNKNOWN_ERROR
public static final UpdateChecker.UpdateReason UNSUPPORTED_VERSION_SCHEME
public static final UpdateChecker.UpdateReason UP_TO_DATE
public static UpdateChecker.UpdateReason[] values()
for (UpdateChecker.UpdateReason c : UpdateChecker.UpdateReason.values()) System.out.println(c);
public static UpdateChecker.UpdateReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.