Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Updater(Updatable plugin,
int pluginId,
File pluginFile,
String apiKey,
ReleaseChannel releaseChannel)
Deprecated.
|
Updater(Updatable plugin,
int pluginId,
int interval,
File pluginFile,
String apiKey,
ReleaseChannel releaseChannel)
Gets a new instance of the updater.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels all update checking tasks.
|
boolean |
check()
Deprecated.
|
boolean |
hasUpdatePending() |
void |
interrupt()
Deprecated.
|
void |
run() |
void |
scheduleNext()
If update checks have somehow been canceled, they can be restarted by
this method.
|
void |
setInterval(long interval)
Sets a new update interval
|
void |
setReleaseType(ReleaseChannel releaseChannel)
Changes the preferred release type Won't have effect until after
next update check.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield@Deprecated public Updater(Updatable plugin, int pluginId, File pluginFile, String apiKey, ReleaseChannel releaseChannel)
started.plugin - JavaPlugin that shall be updatedpluginId - Bukkit.org plugin idpluginFile - File of the plugin (you can use getFile())apiKey - Bukkit apiKey, may be nullreleaseChannel - Choose one of the ReleaseTypespublic Updater(Updatable plugin, int pluginId, int interval, File pluginFile, String apiKey, ReleaseChannel releaseChannel)
started.plugin - JavaPlugin that shall be updatedpluginId - Bukkit.org plugin idinterval - Update check intervalpluginFile - File of the plugin (you can use getFile())apiKey - Bukkit apiKey, may be nullreleaseChannel - Choose one of the ReleaseTypes@Deprecated public void interrupt()
cancel() insteadpublic void setReleaseType(ReleaseChannel releaseChannel)
releaseChannel - the ReleaseChannelpublic void scheduleNext()
@Deprecated public boolean check()
scheduleNext() insteadpublic void cancel()
scheduleNext()public void setInterval(long interval)
interval - the interval in millisecondspublic boolean hasUpdatePending()
Copyright © 2015. All rights reserved.