@Singleton public class BukkitConfigSystem extends ConfigSystem
Bukkit and Bungee have different default config file inside the jar.
config, errorHandler, files, logger, theme
Constructor and Description |
---|
BukkitConfigSystem(PlanFiles files,
PlanConfig config,
ConfigUpdater configUpdater,
ServerSettingsManager serverSettingsManager,
Theme theme,
com.djrapitops.plugin.logging.console.PluginLogger logger,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyDefaults()
Copies default values from file in jar to Config.
|
void |
disable()
Performs disable actions for the subsystem
|
void |
enable()
Performs enable actions for the subsystem.
|
checkWrongTimeZone, getConfig, getTheme, reload
@Inject public BukkitConfigSystem(PlanFiles files, PlanConfig config, ConfigUpdater configUpdater, ServerSettingsManager serverSettingsManager, Theme theme, com.djrapitops.plugin.logging.console.PluginLogger logger, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public void enable() throws EnableException
SubSystem
enable
in interface SubSystem
enable
in class ConfigSystem
EnableException
- If an error occurred during enable and it is fatal to the subsystem.public void disable()
SubSystem
disable
in interface SubSystem
disable
in class ConfigSystem
protected void copyDefaults() throws java.io.IOException
ConfigSystem
copyDefaults
in class ConfigSystem
java.io.IOException
- If file can't be read or written.