Package cz.foresttech.forestredis.bungee
Class ForestRedisBungee
java.lang.Object
net.md_5.bungee.api.plugin.Plugin
cz.foresttech.forestredis.bungee.ForestRedisBungee
- All Implemented Interfaces:
IForestRedisPlugin
public class ForestRedisBungee
extends net.md_5.bungee.api.plugin.Plugin
implements IForestRedisPlugin
Bootstrap BungeeCord plugin to setup the
RedisManager
using configuration file.
Also provides server with reload and version command.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theIConfigurationAdapter
implementationstatic ForestRedisBungee
Obtains the instance of the pluginlogger()
Returns logger objectvoid
void
onEnable()
void
onMessageReceived
(String channel, MessageTransferObject messageTransferObject) Calls the corresponding events when message was receivedvoid
Runs asynchronous taskMethods inherited from class net.md_5.bungee.api.plugin.Plugin
getDataFolder, getDescription, getExecutorService, getFile, getLogger, getProxy, getResourceAsStream, onLoad
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.foresttech.forestredis.shared.IForestRedisPlugin
load
-
Constructor Details
-
ForestRedisBungee
public ForestRedisBungee()
-
-
Method Details
-
onEnable
public void onEnable()- Overrides:
onEnable
in classnet.md_5.bungee.api.plugin.Plugin
-
onDisable
public void onDisable()- Overrides:
onDisable
in classnet.md_5.bungee.api.plugin.Plugin
-
runAsync
Description copied from interface:IForestRedisPlugin
Runs asynchronous task- Specified by:
runAsync
in interfaceIForestRedisPlugin
- Parameters:
task
- Task to be run async
-
logger
Description copied from interface:IForestRedisPlugin
Returns logger object- Specified by:
logger
in interfaceIForestRedisPlugin
- Returns:
- Logger instance of the current implementation
-
getConfigAdapter
Description copied from interface:IForestRedisPlugin
Returns theIConfigurationAdapter
implementation- Specified by:
getConfigAdapter
in interfaceIForestRedisPlugin
- Returns:
- Implementation of
IConfigurationAdapter
-
getInstance
Obtains the instance of the plugin- Returns:
- Instance of
ForestRedisBungee
-