Interface IModule

All Known Implementing Classes:
Ban, Comment, Core, Kick, Mute

public interface IModule
  • Field Details

  • Method Details

    • getName

      String getName()
    • load

      boolean load()
      Load the module
      Returns:
      true if everything's ok otherwise false
    • getConfig

      ModuleConfiguration getConfig()
      Get the configuration section of this module
      Returns:
      configuration section of this module
    • unload

      boolean unload()
      Unload the module
      Returns:
      true if everything's ok otherwise false
    • getMainCommand

      String getMainCommand()
      Get main command name
      Returns:
      name of the main command without a slash
    • getCommands

      List<BATCommand> getCommands()
      Get commands used by this module
      Returns:
      list of commands