public static enum Updater.UpdateResult extends java.lang.Enum<Updater.UpdateResult>
Enum Constant and Description |
---|
FAIL_BADSLUG
The slug provided by the plugin running the updater was invalid and doesn't exist on DBO.
|
FAIL_DBO
For some reason, the updater was unable to contact dev.bukkit.org to download the file.
|
FAIL_DOWNLOAD
The updater found an update, but was unable to download it.
|
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'.
|
NO_UPDATE
The updater did not find an update, and nothing was downloaded.
|
SUCCESS
The updater found an update, and has readied it to be loaded the next time the server restarts/reloads.
|
UPDATE_AVAILABLE
The updater found an update, but because of the UpdateType being set to NO_DOWNLOAD, it wasn't downloaded.
|
Modifier and Type | Method and Description |
---|---|
static Updater.UpdateResult |
getResult(int value) |
int |
getValue() |
java.lang.String |
toString() |
static Updater.UpdateResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Updater.UpdateResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Updater.UpdateResult SUCCESS
public static final Updater.UpdateResult NO_UPDATE
public static final Updater.UpdateResult FAIL_DOWNLOAD
public static final Updater.UpdateResult FAIL_DBO
public static final Updater.UpdateResult FAIL_NOVERSION
public static final Updater.UpdateResult FAIL_BADSLUG
public static final Updater.UpdateResult UPDATE_AVAILABLE
public static Updater.UpdateResult[] values()
for (Updater.UpdateResult c : Updater.UpdateResult.values()) System.out.println(c);
public static Updater.UpdateResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static Updater.UpdateResult getResult(int value)
public java.lang.String toString()
toString
in class java.lang.Enum<Updater.UpdateResult>