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 theIConfigurationAdapterimplementationstatic ForestRedisSpigotObtains 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 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, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from interface cz.foresttech.forestredis.shared.IForestRedisPlugin
load
-
Constructor Details
-
ForestRedisSpigot
public ForestRedisSpigot()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
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
ForestRedisSpigot
-