Package me.manossef.semihardcore
Class UpdateChecker
java.lang.Object
me.manossef.semihardcore.UpdateChecker
An update checker for a resource from SpigotMC that is installed as a plugin
on the server.
-
Constructor Summary
ConstructorDescriptionUpdateChecker
(org.bukkit.plugin.Plugin plugin, int resourceId, String resourceWebName) Constructs a new update checker for a resource. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks the resource for updates.Returns the resource's name.
-
Constructor Details
-
UpdateChecker
Constructs a new update checker for a resource.- Parameters:
plugin
- the resource in its current versionresourceId
- the numeric ID of the resource on SpigotMCresourceWebName
- the URL name of the resource on SpigotMC
-
-
Method Details
-
checkForUpdates
public void checkForUpdates()Checks the resource for updates. -
getPluginName
Returns the resource's name.- Returns:
- the resource's name.
-