Package com.dianxin.tori.api
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 Summary
Modifier and TypeMethodDescriptionGets the bot loader system.Gets the configuration settings of the server.Gets the console command manager.Gets the server's task scheduler.booleanhasJDave()Checks if the JDave Audio Encryption extension is available in the classpath.
-
Method Details
-
getConfig
ServerConfiguration getConfig()Gets the configuration settings of the server.- Returns:
- The
ServerConfigurationcontaining 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
ConsoleCommandManagerinstance.
-
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
Schedulerinstance.
-
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
IBotLoaderinstance.
-
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:
trueif JDave is loaded and available,falseotherwise.
-