|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.jacklin213.lincore.utils.Updater
public class Updater
Check dev.bukkit.org to find updates for a given plugin, and download the updates if needed.
VERY, VERY IMPORTANT: Because there are no standards for adding auto-update toggles in your plugin's config, this system provides NO CHECK WITH YOUR CONFIG to make sure the user has allowed auto-updating.
| Nested Class Summary | |
|---|---|
static class |
Updater.UpdateResult
Gives the dev the result of the update process. |
static class |
Updater.UpdateType
Allows the dev to specify the type of update that will be run. |
| Constructor Summary | |
|---|---|
Updater(Plugin plugin,
int id,
File file,
Updater.UpdateType type,
boolean announce)
Initialize the updater |
|
| Method Summary | |
|---|---|
String |
getLatestFileLink()
Get the latest version's file link. |
String |
getLatestGameVersion()
Get the latest version's game version. |
String |
getLatestName()
Get the latest version's name. |
String |
getLatestType()
Get the latest version's release type (release, beta, or alpha). |
Updater.UpdateResult |
getResult()
Get the result of the update process. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Updater(Plugin plugin,
int id,
File file,
Updater.UpdateType type,
boolean announce)
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 Updater.UpdateTypeannounce - True if the program should announce the progress of new updates in console| Method Detail |
|---|
public Updater.UpdateResult getResult()
public String getLatestType()
public String getLatestGameVersion()
public String getLatestName()
public String getLatestFileLink()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||