Package com.djrapitops.plan.version
Class VersionChecker
java.lang.Object
com.djrapitops.plan.version.VersionChecker
- All Implemented Interfaces:
SubSystem
System for checking if new Version is available when the System initializes.
-
Constructor Summary
ConstructorDescriptionVersionChecker(String currentVersion, Locale locale, PlanConfig config, net.playeranalytics.plugin.server.PluginLogger logger, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, ErrorLogger errorLogger)
-
Method Summary
-
Constructor Details
-
VersionChecker
@Inject public VersionChecker(@Named("currentVersion") String currentVersion, Locale locale, PlanConfig config, net.playeranalytics.plugin.server.PluginLogger logger, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, ErrorLogger errorLogger)
-
-
Method Details
-
isNewVersionAvailable
public boolean isNewVersionAvailable() -
enable
public void enable()Description copied from interface:SubSystem
Performs enable actions for the subsystem. -
disable
public void disable()Description copied from interface:SubSystem
Performs disable actions for the subsystem -
getNewVersionAvailable
-
getUpdateButton
-
getCurrentVersionButton
-
getUpdateModal
-
getCurrentVersion
-