Class UpdateChecker

java.lang.Object
fr.fuzeblocks.homeplugin.other.update.UpdateChecker

public class UpdateChecker extends Object
The type Update checker.
  • Constructor Details

    • UpdateChecker

      public UpdateChecker(org.bukkit.plugin.java.JavaPlugin plugin, int resourceId)
      Instantiates a new Update checker.
      Parameters:
      plugin - the plugin
      resourceId - the resource id
  • Method Details

    • shoudAskForUpdatePlugin

      public static boolean shoudAskForUpdatePlugin()
    • shouldAskForUpdateLangFiles

      public static boolean shouldAskForUpdateLangFiles()
    • isMarkForUpdatePlugin

      public static boolean isMarkForUpdatePlugin()
    • setMarkForUpdatePlugin

      public void setMarkForUpdatePlugin(boolean markForUpdatePlugin)
    • getVersionFromJar

      public static String getVersionFromJar(Path jarPath)
    • getVersion

      public void getVersion(Consumer<String> consumer)
      Gets version.
      Parameters:
      consumer - the consumer
    • getInitialVersion

      public String getInitialVersion()
    • setInitialVersion

      public void setInitialVersion(String version)
    • isInitialVersionOutdated

      public boolean isInitialVersionOutdated(String latestVersion)
    • setShouldAskForUpdateLangFiles

      public void setShouldAskForUpdateLangFiles(boolean shouldAskForUpdateLangFiles)
    • setShoudAskForUpdatePlugin

      public void setShoudAskForUpdatePlugin(boolean shoudAskForUpdatePlugin)