Class ModuleConfig

All Implemented Interfaces:
ObservableConfig<KamiConfig>, ConfigurationMethods<ConfigurationSection>, ConfigurationSection

public class ModuleConfig extends SubsystemConfig<Module>
The configuration of one Module, defaulted from that module's resource in the plugin jar and written under the plugin's data folder. It is created lazily by Module.createConfig(), so a module reaches its own with AbstractSubsystem.getConfig() rather than constructing this directly.
See Also:
  • Constructor Details

    • ModuleConfig

      public ModuleConfig(@NotNull @NotNull Module module, @NotNull @NotNull String resourcePath)
    • ModuleConfig

      public ModuleConfig(@NotNull @NotNull Module module, @NotNull @NotNull ConfigSource source, @NotNull @NotNull String resourcePath)
  • Method Details

    • getModule

      @NotNull public @NotNull Module getModule()
    • isEnabledInConfig

      @Internal public boolean isEnabledInConfig()