Class ConfigSystem

java.lang.Object
com.djrapitops.plan.settings.ConfigSystem
All Implemented Interfaces:
SubSystem
Direct Known Subclasses:
BukkitConfigSystem, FabricConfigSystem, NukkitConfigSystem, ProxyConfigSystem

@Singleton public abstract class ConfigSystem extends Object implements SubSystem
System for Config and other user customizable options.
  • Field Details

    • files

      protected final PlanFiles files
    • config

      protected final PlanConfig config
    • theme

      protected final Theme theme
    • logger

      protected final net.playeranalytics.plugin.server.PluginLogger logger
    • errorLogger

      protected final ErrorLogger errorLogger
  • Constructor Details

  • Method Details

    • getConfig

      public PlanConfig getConfig()
    • getTheme

      public Theme getTheme()
    • enable

      public void enable()
      Description copied from interface: SubSystem
      Performs enable actions for the subsystem.
      Specified by:
      enable in interface SubSystem
    • checkWrongTimeZone

      public void checkWrongTimeZone()
    • copyDefaults

      protected abstract void copyDefaults() throws IOException
      Copies default values from file in jar to Config.
      Throws:
      IOException - If file can't be read or written.
    • disable

      public void disable()
      Description copied from interface: SubSystem
      Performs disable actions for the subsystem
      Specified by:
      disable in interface SubSystem
    • reload

      public void reload()