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 theIConfigurationAdapterimplementationstatic ForestRedisBungeeObtains the instance of the pluginlogger()Returns logger objectvoidvoidonEnable()voidonMessageReceived(String channel, MessageTransferObject messageTransferObject) Calls the corresponding events when message was receivedvoidRuns asynchronous taskMethods inherited from class net.md_5.bungee.api.plugin.Plugin
getDataFolder, getDescription, getExecutorService, getFile, getLogger, getProxy, getResourceAsStream, onLoadMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.foresttech.forestredis.shared.IForestRedisPlugin
load
-
Constructor Details
-
ForestRedisBungee
public ForestRedisBungee()
-
-
Method Details
-
onEnable
public void onEnable()- Overrides:
onEnablein classnet.md_5.bungee.api.plugin.Plugin
-
onDisable
public void onDisable()- Overrides:
onDisablein classnet.md_5.bungee.api.plugin.Plugin
-
runAsync
Description copied from interface:IForestRedisPluginRuns asynchronous task- Specified by:
runAsyncin interfaceIForestRedisPlugin- Parameters:
task- Task to be run async
-
logger
Description copied from interface:IForestRedisPluginReturns logger object- Specified by:
loggerin interfaceIForestRedisPlugin- Returns:
- Logger instance of the current implementation
-
getConfigAdapter
Description copied from interface:IForestRedisPluginReturns theIConfigurationAdapterimplementation- Specified by:
getConfigAdapterin interfaceIForestRedisPlugin- Returns:
- Implementation of
IConfigurationAdapter
-
getInstance
Obtains the instance of the plugin- Returns:
- Instance of
ForestRedisBungee
-