Class UpdateChecker
java.lang.Object
fr.fuzeblocks.homeplugin.other.update.UpdateChecker
The type Update checker.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateChecker(org.bukkit.plugin.java.JavaPlugin plugin) Instantiates a new Update checker. -
Method Summary
Modifier and TypeMethodDescriptionvoidgetVersion(Consumer<String> consumer) Gets version.static StringgetVersionFromJar(Path jarPath) booleanisInitialVersionOutdated(String latestVersion) static booleanvoidsetInitialVersion(String version) voidsetMarkForUpdatePlugin(boolean markForUpdatePlugin) voidsetShouldAskForUpdateLangFiles(boolean shouldAskForUpdateLangFiles) voidsetShouldAskForUpdatePlugin(boolean shoudAskForUpdatePlugin) static booleanstatic boolean
-
Constructor Details
-
UpdateChecker
public UpdateChecker(org.bukkit.plugin.java.JavaPlugin plugin) Instantiates a new Update checker.- Parameters:
plugin- the plugin
-
-
Method Details
-
shoudAskForUpdatePlugin
public static boolean shoudAskForUpdatePlugin() -
shouldAskForUpdateLangFiles
public static boolean shouldAskForUpdateLangFiles() -
isMarkForUpdatePlugin
public static boolean isMarkForUpdatePlugin() -
setMarkForUpdatePlugin
public void setMarkForUpdatePlugin(boolean markForUpdatePlugin) -
getVersionFromJar
-
getVersion
-
getInitialVersion
-
setInitialVersion
-
isInitialVersionOutdated
-
setShouldAskForUpdateLangFiles
public void setShouldAskForUpdateLangFiles(boolean shouldAskForUpdateLangFiles) -
setShouldAskForUpdatePlugin
public void setShouldAskForUpdatePlugin(boolean shoudAskForUpdatePlugin)
-