Interface ToriServer


public interface ToriServer
Represents the core foundation of the Tori Server. This interface provides access to the primary managers and systems required to run and manage the multi-bot environment.
  • Method Details

    • getConfig

      ServerConfiguration getConfig()
      Gets the configuration settings of the server.
      Returns:
      The ServerConfiguration containing the properties loaded from the configuration file.
    • getConsoleCommandManager

      ConsoleCommandManager getConsoleCommandManager()
      Gets the console command manager.

      This manager is used to register, unregister, and handle commands typed directly into the server's terminal/console.

      Returns:
      The ConsoleCommandManager instance.
    • getScheduler

      Scheduler getScheduler()
      Gets the server's task scheduler.

      The scheduler is responsible for executing asynchronous, delayed, or repeating tasks safely within the server's lifecycle.

      Returns:
      The Scheduler instance.
    • getBotLoader

      IBotLoader getBotLoader()
      Gets the bot loader system.

      The bot loader handles the discovery, initialization, and lifecycle management (loading/shutting down) of all external bot JAR files.

      Returns:
      The IBotLoader instance.
    • hasJDave

      boolean hasJDave()
      Checks if the JDave Audio Encryption extension is available in the classpath.

      JDave is an optional audio encryption module that provides enhanced audio security features. This method can be used to conditionally enable or disable advanced audio functionality.

      Returns:
      true if JDave is loaded and available, false otherwise.