Class UpdateChecker
java.lang.Object
fr.fuzeblocks.homeplugin.other.update.UpdateChecker
The type Update checker.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateChecker(org.bukkit.plugin.java.JavaPlugin plugin, int resourceId) 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) voidsetShoudAskForUpdatePlugin(boolean shoudAskForUpdatePlugin) voidsetShouldAskForUpdateLangFiles(boolean shouldAskForUpdateLangFiles) static booleanstatic boolean
-
Constructor Details
-
UpdateChecker
public UpdateChecker(org.bukkit.plugin.java.JavaPlugin plugin, int resourceId) Instantiates a new Update checker.- Parameters:
plugin- the pluginresourceId- 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
-
getVersion
-
getInitialVersion
-
setInitialVersion
-
isInitialVersionOutdated
-
setShouldAskForUpdateLangFiles
public void setShouldAskForUpdateLangFiles(boolean shouldAskForUpdateLangFiles) -
setShoudAskForUpdatePlugin
public void setShoudAskForUpdatePlugin(boolean shoudAskForUpdatePlugin)
-