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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.
    Returns an instance of UberEnchant.
    void
     
    void
     
    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UberEnchant

      public UberEnchant()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • instance

      public static UberEnchant 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