|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Updater.UpdateResult>
me.armar.plugins.autorank.updater.Updater.UpdateResult
public static enum Updater.UpdateResult
Gives the dev the result of the update process. Can be obtained by called getResult().
| Enum Constant Summary | |
|---|---|
DISABLED
The server administrator has disabled the updating system |
|
FAIL_APIKEY
The server administrator has improperly configured their API key in the configuration |
|
FAIL_BADID
The id 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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Updater.UpdateResult SUCCESS
public static final Updater.UpdateResult NO_UPDATE
public static final Updater.UpdateResult DISABLED
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_BADID
public static final Updater.UpdateResult FAIL_APIKEY
public static final Updater.UpdateResult UPDATE_AVAILABLE
| Method Detail |
|---|
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 name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||