Package cz.foresttech.forestredis.spigot
Class ForestRedisSpigot
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
cz.foresttech.forestredis.spigot.ForestRedisSpigot
- All Implemented Interfaces:
IForestRedisPlugin
,org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class ForestRedisSpigot
extends org.bukkit.plugin.java.JavaPlugin
implements IForestRedisPlugin
Bootstrap Spigot 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 ForestRedisSpigot
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 org.bukkit.plugin.java.JavaPlugin
getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from interface cz.foresttech.forestredis.shared.IForestRedisPlugin
load
-
Constructor Details
-
ForestRedisSpigot
public ForestRedisSpigot()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
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
ForestRedisSpigot
-