Package dev.majek.hexnicks.util
Class UpdateChecker
java.lang.Object
dev.majek.hexnicks.util.UpdateChecker
Used to check for plugin updates from the Spigot plugin page.
-
Constructor Summary
ConstructorDescriptionUpdateChecker
(org.bukkit.plugin.java.JavaPlugin plugin, int resourceId) Construct a new update checker. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
-
Constructor Details
-
UpdateChecker
public UpdateChecker(org.bukkit.plugin.java.JavaPlugin plugin, int resourceId) Construct a new update checker.- Parameters:
plugin
- The main class of the plugin.resourceId
- Plugin's resource id on Spigot.
-
-
Method Details
-
isAheadOfSpigot
public boolean isAheadOfSpigot() -
isBehindSpigot
public boolean isBehindSpigot() -
isSpigotLatest
public boolean isSpigotLatest()
-