@Singleton public class SpongeConfigSystem extends BukkitConfigSystem
config, errorHandler, files, logger, theme
Constructor and Description |
---|
SpongeConfigSystem(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 |
enable()
Performs enable actions for the subsystem.
|
disable
checkWrongTimeZone, getConfig, getTheme, reload
@Inject public SpongeConfigSystem(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 BukkitConfigSystem
EnableException
- If an error occurred during enable and it is fatal to the subsystem.protected void copyDefaults() throws java.io.IOException
ConfigSystem
copyDefaults
in class BukkitConfigSystem
java.io.IOException
- If file can't be read or written.