Package me.totalfreedom.base
Class Patchwork
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.totalfreedom.base.Patchwork
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public class Patchwork
extends org.bukkit.plugin.java.JavaPlugin
The base class for Patchwork.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theAdminChatDisplayfor this plugin.Gets theEventBusfor this plugin.Gets theFreedomExecutorfor this plugin.static PatchworkProvides this plugin instance through a safe static method.Get's the Registration object for this plugin.voidvoidonEnable()Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getComponentLogger, getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
Patchwork
public Patchwork()
-
-
Method Details
-
getInstance
Provides this plugin instance through a safe static method. This is effectively the same thing as usingJavaPlugin.getPlugin(Class)- Returns:
- the plugin instance
-
onDisable
public void onDisable()- Specified by:
onDisablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onDisablein classorg.bukkit.plugin.java.JavaPlugin
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
getExecutor
Gets theFreedomExecutorfor this plugin.- Returns:
- the
FreedomExecutor
-
getRegistrations
Get's the Registration object for this plugin. This object contains every registry class for the various features provided by this plugin.- Returns:
- the Registration object
-
getEventBus
Gets theEventBusfor this plugin. The EventBus is used to register and listen to custom events provided by Freedom Network Suite.- Returns:
- the
EventBus
-
getAdminChatDisplay
Gets theAdminChatDisplayfor this plugin. The AdminChatDisplay is used to display messages sent in adminchat.- Returns:
- the
AdminChatDisplay
-