Class ModuleConfiguration

java.lang.Object
net.cubespace.Yamler.Config.BaseConfig
net.cubespace.Yamler.Config.BaseConfigMapper
net.cubespace.Yamler.Config.ConfigMapper
net.cubespace.Yamler.Config.YamlConfig
fr.Alphart.BAT.Modules.ModuleConfiguration
All Implemented Interfaces:
net.cubespace.Yamler.Config.IConfig
Direct Known Subclasses:
Ban.BanConfig, Comment.CommentConfig, Kick.KickConfig, Mute.MuteConfig

public abstract class ModuleConfiguration extends net.cubespace.Yamler.Config.YamlConfig
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the names of the enabled commands for this module
    void
    init(String moduleName)
     
    void
    Unlike YamlConfig.init() this init method throw the exception and doesn't print it in the console
    void
    Add commands provided by this module into the configuration file

    Methods inherited from class net.cubespace.Yamler.Config.YamlConfig

    init, init, load, load, reload, save, save

    Methods inherited from class net.cubespace.Yamler.Config.ConfigMapper

    loadFromMap, saveToMap

    Methods inherited from class net.cubespace.Yamler.Config.BaseConfigMapper

    addComment, clearComments

    Methods inherited from class net.cubespace.Yamler.Config.BaseConfig

    addConverter, update

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModuleConfiguration

      public ModuleConfiguration()
  • Method Details

    • init

      public void init(String moduleName)
    • initThrowingExceptions

      public void initThrowingExceptions(String moduleName) throws net.cubespace.Yamler.Config.InvalidConfigurationException
      Unlike YamlConfig.init() this init method throw the exception and doesn't print it in the console
      Throws:
      net.cubespace.Yamler.Config.InvalidConfigurationException
    • getEnabledCmds

      public List<String> getEnabledCmds()
      Get the names of the enabled commands for this module
      Returns:
      list of the enabled commands
    • setProvidedCmds

      public void setProvidedCmds(List<String> cmds)
      Add commands provided by this module into the configuration file
      Parameters:
      commands - list