public interface HandleBotEvents
Modifier and Type | Method and Description |
---|---|
void |
activate()
This method will be called after connected successfully to the TS3 server after calling handleOnBotConnect(), after reloading configuration or after receiving the function/plugin activate request by bot admin.
|
void |
disable()
This method will be called while disconnecting from TS3 server, before reloading the configuration or after receiving the function/plugin disable request by bot admin.
|
int |
getAPIBuild()
On loading all functions/plugins this method will be called to know, if the api build of the plugin match with the JTS3ServerMod.
|
String |
getCopyright()
The plugin name and copyright.
|
void |
handleAfterCacheUpdate()
This method will be called after updating the server info, server group list or channel list cache.
|
void |
handleOnBotConnect()
This method will be called after the JTS3ServerMod connected successfully to the TS3 server.
|
void |
initClass(JTS3ServerMod_Interface modClass,
JTS3ServerQuery queryLib,
String prefix)
This method will be called while loading all functions/plugins.
|
boolean |
multipleInstances()
On loading all functions/plugins this method will be called to know, if multiple instances of this function/plugin per virtual bot are allowed.
|
void |
unload()
This method will be called while disconnecting from TS3 server after calling disable().
|
void activate()
void disable()
int getAPIBuild()
String getCopyright()
void handleAfterCacheUpdate()
void handleOnBotConnect()
void initClass(JTS3ServerMod_Interface modClass, JTS3ServerQuery queryLib, String prefix)
modClass
- Main bot classqueryLib
- Query connection used by the main bot classprefix
- This is the prefix for config keys and chat commands.boolean multipleInstances()
true
if multiple instances are allowed, false
if not.void unload()