Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
Updater(Updatable plugin,
int pluginId,
File pluginFile,
String apiKey,
ReleaseType releaseType)
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 |
setReleaseType(ReleaseType releaseType)
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, yieldpublic Updater(Updatable plugin, int pluginId, File pluginFile, String apiKey, ReleaseType releaseType)
started.plugin - JavaPlugin that shall be updatedpluginId - Bukkit.org plugin idpluginFile - File of the plugin (you can use getFile())apiKey - Bukkit apiKey, may be nullreleaseType - Choose one of the ReleaseTypes@Deprecated public void interrupt()
cancel() insteadpublic void setReleaseType(ReleaseType releaseType)
releaseType - public void scheduleNext()
@Deprecated public boolean check()
scheduleNext() insteadpublic void cancel()
scheduleNext()public boolean hasUpdatePending()
Copyright © 2015. All rights reserved.