Package com.comphenix.protocol.updater
Enum Class Updater.UpdateResult
- All Implemented Interfaces:
Serializable,Comparable<Updater.UpdateResult>,Constable
- Enclosing class:
Updater
Gives the dev the result of the update process. Can be obtained by called getResult().
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe server administrator has disabled the updating systemThe server administrator has improperly configured their API key in the configurationThe id provided by the plugin running the updater was invalid and doesn't exist on DBO.For some reason, the updater was unable to contact dev.bukkit.org to download the file.The updater found an update, but was unable to download it.When running the version check, the file on DBO did not contain the a version in the format 'vVersion' such as 'v1.0'.The updater did not find an update, and nothing was downloaded.The updater found an update at SpigotThe updater found an update, and has readied it to be loaded the next time the server restarts/reloads.The updater found an update, but because of the UpdateType being set to NO_DOWNLOAD, it wasn't downloaded. -
Method Summary
Modifier and TypeMethodDescriptiontoString()static Updater.UpdateResultReturns the enum constant of this class with the specified name.static Updater.UpdateResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The updater found an update, and has readied it to be loaded the next time the server restarts/reloads. -
NO_UPDATE
The updater did not find an update, and nothing was downloaded. -
DISABLED
The server administrator has disabled the updating system -
FAIL_DOWNLOAD
The updater found an update, but was unable to download it. -
FAIL_DBO
For some reason, the updater was unable to contact dev.bukkit.org to download the file. -
FAIL_NOVERSION
When running the version check, the file on DBO did not contain the a version in the format 'vVersion' such as 'v1.0'. -
FAIL_BADID
The id provided by the plugin running the updater was invalid and doesn't exist on DBO. -
FAIL_APIKEY
The server administrator has improperly configured their API key in the configuration -
UPDATE_AVAILABLE
The updater found an update, but because of the UpdateType being set to NO_DOWNLOAD, it wasn't downloaded. -
SPIGOT_UPDATE_AVAILABLE
The updater found an update at Spigot
-
-
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
-
toString
- Overrides:
toStringin classEnum<Updater.UpdateResult>
-