public abstract class TacoPlugin
extends org.bukkit.plugin.java.JavaPlugin
| Modifier and Type | Field and Description |
|---|---|
private static TacoChatUtils |
cu |
private static java.lang.String |
name |
| Constructor and Description |
|---|
TacoPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(java.lang.String message)
Outputs a message to the server (and console).
|
static TacoChatUtils |
getChatUtils()
Gets the
TacoChatUtils object for this plugin. |
static java.lang.String |
getInheritedPluginName()
Gets the name of the inherited TacoPlugin.
|
abstract void |
onDisable()
Default Bukkit
onDisable() |
abstract void |
onEnable()
Default Bukkit
onEnable() |
void |
print(java.lang.String msg)
Outputs a message to the console.
|
protected void |
registerCommand(TacoCommandHandler handler)
Registers a command for the server, this should be used instead of the
getCommand() method. |
protected void |
setName(java.lang.String pluginName)
Sets the name of this plugin.
|
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPluginLoader, getResource, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, onLoad, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringprivate static TacoChatUtils cu
private static java.lang.String name
public abstract void onEnable()
onEnable()onEnable in interface org.bukkit.plugin.PluginonEnable in class org.bukkit.plugin.java.JavaPluginpublic abstract void onDisable()
onDisable()onDisable in interface org.bukkit.plugin.PluginonDisable in class org.bukkit.plugin.java.JavaPluginpublic void print(java.lang.String msg)
msg - - The message to be printedprotected void setName(java.lang.String pluginName)
public void broadcast(java.lang.String message)
message - - The message to broadcastprotected void registerCommand(TacoCommandHandler handler)
getCommand() method.handler - public static TacoChatUtils getChatUtils()
TacoChatUtils object for this plugin.public static java.lang.String getInheritedPluginName()
onEnable() method of the main class
using setName() in order to work