Class VersionChecker
java.lang.Object
com.djrapitops.plan.version.VersionChecker
- All Implemented Interfaces:
SubSystem
- Direct Known Subclasses:
FabricVersionChecker, SpongeVersionChecker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PlanConfigprotected final VersionNumberprotected final ErrorLoggerprotected final Localeprotected final net.playeranalytics.plugin.server.PluginLoggerprotected VersionInfoprotected final net.playeranalytics.plugin.scheduling.RunnableFactory -
Constructor Summary
ConstructorsConstructorDescriptionVersionChecker(String currentVersion, Locale locale, PlanConfig config, net.playeranalytics.plugin.server.PluginLogger logger, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, ErrorLogger errorLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Performs disable actions for the subsystemvoidenable()Performs enable actions for the subsystem.booleanprotected Optional<List<VersionInfo>>
-
Field Details
-
currentVersion
-
locale
-
config
-
logger
protected final net.playeranalytics.plugin.server.PluginLogger logger -
runnableFactory
protected final net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory -
errorLogger
-
newVersionAvailable
-
-
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() -
loadVersionInfo
-
enable
-
disable
-
getNewVersionAvailable
-
getCurrentVersion
-