Package com.djrapitops.plan.version
Class VersionChecker
- java.lang.Object
-
- com.djrapitops.plan.version.VersionChecker
-
-
Constructor Summary
Constructors Constructor Description VersionChecker(java.lang.String currentVersion, Locale locale, PlanConfig config, net.playeranalytics.plugin.server.PluginLogger logger, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.java.lang.String
getCurrentVersion()
java.lang.String
getCurrentVersionButton()
java.util.Optional<VersionInfo>
getNewVersionAvailable()
java.util.Optional<java.lang.String>
getUpdateButton()
java.lang.String
getUpdateModal()
boolean
isNewVersionAvailable()
-
-
-
Constructor Detail
-
VersionChecker
@Inject public VersionChecker(@Named("currentVersion") java.lang.String currentVersion, Locale locale, PlanConfig config, net.playeranalytics.plugin.server.PluginLogger logger, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, ErrorLogger errorLogger)
-
-
Method Detail
-
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
public java.util.Optional<VersionInfo> getNewVersionAvailable()
-
getUpdateButton
public java.util.Optional<java.lang.String> getUpdateButton()
-
getCurrentVersionButton
public java.lang.String getCurrentVersionButton()
-
getUpdateModal
public java.lang.String getUpdateModal()
-
getCurrentVersion
public java.lang.String getCurrentVersion()
-
-