public class BukkitUpdater extends Updater
Updater.UpdateResult, Updater.UpdateTypeannounce, listeners, plugin, REPORT_CANNOT_UPDATE_PLUGIN, result, type, versionFileName, versionGameVersion, versionLink, versionName, versionType| Constructor and Description |
|---|
BukkitUpdater(org.bukkit.plugin.Plugin plugin,
int id,
File file,
Updater.UpdateType type,
boolean announce)
Initialize the updater.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRemoteVersion() |
boolean |
read()
Evaluate whether the version number is marked showing that it should not be updated by this program
|
void |
start(Updater.UpdateType type)
Begin looking for updates.
|
addListener, create, getLatestFileLink, getLatestGameVersion, getLatestName, getLatestType, getResult, isChecking, removeListener, shouldNotify, versionCheck, waitForThreadpublic BukkitUpdater(org.bukkit.plugin.Plugin plugin,
int id,
File file,
Updater.UpdateType type,
boolean announce)
Call #start() to actually start looking (and downloading) updates.
plugin - The plugin that is checking for an update.id - The dev.bukkit.org id of the projectfile - The file that the plugin is running from, get this by doing this.getFile() from within your main class.type - Specify the type of update this will be. See UpdateTypeannounce - True if the program should announce the progress of new updates in consolepublic void start(Updater.UpdateType type)
public boolean read()
public String getRemoteVersion()
getRemoteVersion in class UpdaterCopyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.