Package com.djrapitops.plan.settings
Class SpongeConfigSystem
- java.lang.Object
-
- com.djrapitops.plan.settings.ConfigSystem
-
- com.djrapitops.plan.settings.BukkitConfigSystem
-
- com.djrapitops.plan.settings.SpongeConfigSystem
-
- All Implemented Interfaces:
SubSystem
@Singleton public class SpongeConfigSystem extends BukkitConfigSystem
Sponge ConfigSystem that disables Geolocations on first enable.
-
-
Field Summary
-
Fields inherited from class com.djrapitops.plan.settings.ConfigSystem
config, errorLogger, files, logger, theme
-
-
Constructor Summary
Constructors Constructor Description SpongeConfigSystem(PlanFiles files, PlanConfig config, ConfigUpdater configUpdater, ServerSettingsManager serverSettingsManager, Theme theme, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
copyDefaults()
Copies default values from file in jar to Config.void
enable()
Performs enable actions for the subsystem.-
Methods inherited from class com.djrapitops.plan.settings.BukkitConfigSystem
disable
-
Methods inherited from class com.djrapitops.plan.settings.ConfigSystem
checkWrongTimeZone, getConfig, getTheme, reload
-
-
-
-
Constructor Detail
-
SpongeConfigSystem
@Inject public SpongeConfigSystem(PlanFiles files, PlanConfig config, ConfigUpdater configUpdater, ServerSettingsManager serverSettingsManager, Theme theme, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Detail
-
enable
public void enable()
Description copied from interface:SubSystem
Performs enable actions for the subsystem.- Specified by:
enable
in interfaceSubSystem
- Overrides:
enable
in classBukkitConfigSystem
-
copyDefaults
protected void copyDefaults() throws java.io.IOException
Description copied from class:ConfigSystem
Copies default values from file in jar to Config.- Overrides:
copyDefaults
in classBukkitConfigSystem
- Throws:
java.io.IOException
- If file can't be read or written.
-
-