public class LapisUpdater extends Object
| Constructor and Description |
|---|
LapisUpdater(org.bukkit.plugin.java.JavaPlugin plugin,
String jarName,
String username,
String repoName,
String branch)
The URL to the latest jar should be https://raw.githubusercontent.com/username/repoName/branch/updater/ID/jarName.jar
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkUpdate()
Check if there is an update
|
void |
downloadUpdate()
Downloads the latest jar (if there is an update) and readies it for installation
|
public LapisUpdater(org.bukkit.plugin.java.JavaPlugin plugin,
String jarName,
String username,
String repoName,
String branch)
plugin - The main class of your pluginjarName - The name of the jar file, excludes .jarusername - The github username used for the reporepoName - The repo namebranch - The branch nameCopyright © 2019. All rights reserved.