Package com.djrapitops.plan.settings
Class ConfigSystem
- java.lang.Object
-
- com.djrapitops.plan.settings.ConfigSystem
-
- All Implemented Interfaces:
SubSystem
- Direct Known Subclasses:
BukkitConfigSystem
,NukkitConfigSystem
,ProxyConfigSystem
@Singleton public abstract class ConfigSystem extends java.lang.Object implements SubSystem
System for Config and other user customizable options.
-
-
Field Summary
Fields Modifier and Type Field Description protected PlanConfig
config
protected ErrorLogger
errorLogger
protected PlanFiles
files
protected net.playeranalytics.plugin.server.PluginLogger
logger
protected Theme
theme
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConfigSystem(PlanFiles files, PlanConfig config, Theme theme, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
checkWrongTimeZone()
protected abstract void
copyDefaults()
Copies default values from file in jar to Config.void
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.PlanConfig
getConfig()
Theme
getTheme()
void
reload()
-
-
-
Field Detail
-
files
protected final PlanFiles files
-
config
protected final PlanConfig config
-
theme
protected final Theme theme
-
logger
protected final net.playeranalytics.plugin.server.PluginLogger logger
-
errorLogger
protected final ErrorLogger errorLogger
-
-
Constructor Detail
-
ConfigSystem
protected ConfigSystem(PlanFiles files, PlanConfig config, Theme theme, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Detail
-
getConfig
public PlanConfig getConfig()
-
getTheme
public Theme getTheme()
-
enable
public void enable()
Description copied from interface:SubSystem
Performs enable actions for the subsystem.
-
checkWrongTimeZone
public void checkWrongTimeZone()
-
copyDefaults
protected abstract void copyDefaults() throws java.io.IOException
Copies default values from file in jar to Config.- Throws:
java.io.IOException
- If file can't be read or written.
-
disable
public void disable()
Description copied from interface:SubSystem
Performs disable actions for the subsystem
-
reload
public void reload()
-
-