public static enum PluginUpdater.UpdateResult extends Enum<PluginUpdater.UpdateResult>
PluginUpdater.getResult()| 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 PluginUpdater.UpdateResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PluginUpdater.UpdateResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PluginUpdater.UpdateResult SUCCESS
public static final PluginUpdater.UpdateResult NO_UPDATE
public static final PluginUpdater.UpdateResult DISABLED
public static final PluginUpdater.UpdateResult FAIL_DOWNLOAD
public static final PluginUpdater.UpdateResult FAIL_DBO
public static final PluginUpdater.UpdateResult FAIL_NOVERSION
public static final PluginUpdater.UpdateResult FAIL_BADID
public static final PluginUpdater.UpdateResult FAIL_APIKEY
public static final PluginUpdater.UpdateResult UPDATE_AVAILABLE
public static PluginUpdater.UpdateResult[] values()
for (PluginUpdater.UpdateResult c : PluginUpdater.UpdateResult.values()) System.out.println(c);
public static PluginUpdater.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 nullCopyright © 2017. All rights reserved.