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
ConstructorsConstructorDescriptionUpdateChecker
(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 version.resourceId
- The numeric ID of the resource on SpigotMC.resourceWebName
- 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.
-