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
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
ConstructorDescriptionSpongeConfigSystem(PlanFiles files, PlanConfig config, ConfigUpdater configUpdater, ServerSettingsManager serverSettingsManager, Theme theme, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
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 Details
-
SpongeConfigSystem
@Inject public SpongeConfigSystem(PlanFiles files, PlanConfig config, ConfigUpdater configUpdater, ServerSettingsManager serverSettingsManager, Theme theme, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger)
-
-
Method Details
-
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
Description copied from class:ConfigSystem
Copies default values from file in jar to Config.- Overrides:
copyDefaults
in classBukkitConfigSystem
- Throws:
IOException
- If file can't be read or written.
-