SkyLib
1.1.1
SkyLib
/
de.skyslycer.skylib.updater
/
SpigotPluginUpdater
Spigot
Plugin
Updater
public
class
SpigotPluginUpdater
extends
PluginUpdater
Utility class for getting the latest plugin version on Spigot.
Constructors
Functions
Constructors
Spigot
Plugin
Updater
Link copied to clipboard
public
void
SpigotPluginUpdater
(
int pluginId
)
Create a new Spigot plugin updater.
Functions
check
Link copied to clipboard
public
CheckResult
check
(
SkyPlugin
plugin
)
Check if there is a new update.
parse
Link copied to clipboard
public
String
parse
(
JsonObject
object
)
Parse the returned JsonObject into the latest version.
platform
Link copied to clipboard
public
PluginPlatform
platform
(
)
Get the updater platform.
plugin
Id
Link copied to clipboard
public
int
pluginId
(
)
Get the plugin id for the platform.