Package com.djrapitops.plan.settings
Class NukkitConfigSystem
- java.lang.Object
-
- com.djrapitops.plan.settings.ConfigSystem
-
- com.djrapitops.plan.settings.NukkitConfigSystem
-
- All Implemented Interfaces:
SubSystem
@Singleton public class NukkitConfigSystem extends ConfigSystem
ConfigSystem for Bukkit.Bukkit and Bungee have different default config file inside the jar.
-
-
Field Summary
-
Fields inherited from class com.djrapitops.plan.settings.ConfigSystem
config, errorLogger, files, logger, theme
-
-
Constructor Summary
Constructors Constructor Description NukkitConfigSystem(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
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.-
Methods inherited from class com.djrapitops.plan.settings.ConfigSystem
checkWrongTimeZone, getConfig, getTheme, reload
-
-
-
-
Constructor Detail
-
NukkitConfigSystem
@Inject public NukkitConfigSystem(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 classConfigSystem
-
disable
public void disable()
Description copied from interface:SubSystem
Performs disable actions for the subsystem- Specified by:
disable
in interfaceSubSystem
- Overrides:
disable
in classConfigSystem
-
copyDefaults
protected void copyDefaults() throws java.io.IOException
Description copied from class:ConfigSystem
Copies default values from file in jar to Config.- Specified by:
copyDefaults
in classConfigSystem
- Throws:
java.io.IOException
- If file can't be read or written.
-
-