public static enum BetterUpdater.UpdateResult extends Enum<BetterUpdater.UpdateResult>
| Enum Constant and Description |
|---|
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 a recognizable version.
|
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 BetterUpdater.UpdateResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BetterUpdater.UpdateResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BetterUpdater.UpdateResult SUCCESS
public static final BetterUpdater.UpdateResult NO_UPDATE
public static final BetterUpdater.UpdateResult DISABLED
public static final BetterUpdater.UpdateResult FAIL_DOWNLOAD
public static final BetterUpdater.UpdateResult FAIL_DBO
public static final BetterUpdater.UpdateResult FAIL_NOVERSION
public static final BetterUpdater.UpdateResult FAIL_BADID
public static final BetterUpdater.UpdateResult FAIL_APIKEY
public static final BetterUpdater.UpdateResult UPDATE_AVAILABLE
public static BetterUpdater.UpdateResult[] values()
for (BetterUpdater.UpdateResult c : BetterUpdater.UpdateResult.values()) System.out.println(c);
public static BetterUpdater.UpdateResult 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 null