Package me.sciguymjm.uberenchant
Class UberEnchant
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
me.sciguymjm.uberenchant.UberEnchant
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class UberEnchant
extends org.bukkit.plugin.java.JavaPlugin
The Main class of UberEnchant
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.milkbowl.vault.economy.Economy
Gets the economy currently being used.
(May return null in case of no economy or unspported economy)static boolean
Gets whether there is an economy or not.static UberEnchant
instance()
Returns an instance of UberEnchant.void
void
onEnable()
static void
registerEvents
(org.bukkit.event.Listener listener) Convenience static method to register events with UberEnchant.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
UberEnchant
public UberEnchant()
-
-
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
-
instance
Returns an instance of UberEnchant.- Returns:
- The current instance of UberEnchant
-
registerEvents
public static void registerEvents(org.bukkit.event.Listener listener) Convenience static method to register events with UberEnchant.- Parameters:
listener
- - The listener to register
-
getEconomy
public static net.milkbowl.vault.economy.Economy getEconomy()Gets the economy currently being used.
(May return null in case of no economy or unspported economy)- Returns:
- The current economy or null
-
hasEconomy
public static boolean hasEconomy()Gets whether there is an economy or not.- Returns:
- True if the server has a supported economy
-