Class UpdateChecker

java.lang.Object
me.lokka30.levelledmobs.util.UpdateChecker

public class UpdateChecker extends Object
An adapted version of the Update Checker from the SpigotMC.org Wiki.
Since:
unknown
See Also:
  • Constructor Details

    • UpdateChecker

      public UpdateChecker(org.bukkit.plugin.java.JavaPlugin plugin, int resourceId)
  • Method Details

    • getLatestVersion

      public void getLatestVersion(Consumer<String> consumer)
      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

      public String getCurrentVersion()
      Returns:
      the version string from the plugin's plugin.yml file, i.e., what the user is currently running.