Package me.lokka30.levelledmobs.util
Class UpdateChecker
java.lang.Object
me.lokka30.levelledmobs.util.UpdateChecker
An adapted version of the Update Checker from the SpigotMC.org Wiki.
- Since:
- unknown
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getLatestVersion
(Consumer<String> consumer) Credit to the editors of this wiki page.
-
Constructor Details
-
UpdateChecker
public UpdateChecker(org.bukkit.plugin.java.JavaPlugin plugin, int resourceId)
-
-
Method Details
-
getLatestVersion
Credit to the editors of this wiki page. (sourced at 15th September 2020)- Parameters:
consumer
- what to do once an update checker result is found- Since:
- unknown
-
getCurrentVersion
- Returns:
- the version string from the plugin's plugin.yml file, i.e., what the user is currently running.
-