Class MiningTrophies

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
com.github.crashdemons.miningtrophies.MiningTrophies
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.event.Listener, org.bukkit.plugin.Plugin

public class MiningTrophies extends org.bukkit.plugin.java.JavaPlugin implements org.bukkit.event.Listener
The main plugin class for MiningTrophies
Author:
crash
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.inventory.ItemStack
     
    boolean
    Checks whether the plugin has detected NoCheatPlus and will attempt to support it.
    void
    onBlockBreakEvent(org.bukkit.event.block.BlockBreakEvent event)
     
    void
    onBlockPlace(org.bukkit.event.block.BlockPlaceEvent event)
     
    boolean
    onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args)
     
    void
     
    void
     
    void
    onGrindstone(org.bukkit.event.inventory.InventoryClickEvent event)
     
    void
    onItemSpawn(org.bukkit.event.entity.ItemSpawnEvent event)
     

    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, 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

    • MiningTrophies

      public MiningTrophies()
  • Method Details

    • isNCPEnabled

      public boolean isNCPEnabled()
      Checks whether the plugin has detected NoCheatPlus and will attempt to support it.
      Returns:
      whether nocheatplus was detected
    • 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
    • createTrophyDrop

      public org.bukkit.inventory.ItemStack createTrophyDrop(TrophyType type)
    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args)
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
      Overrides:
      onCommand in class org.bukkit.plugin.java.JavaPlugin
    • onBlockPlace

      public void onBlockPlace(org.bukkit.event.block.BlockPlaceEvent event)
    • onItemSpawn

      public void onItemSpawn(org.bukkit.event.entity.ItemSpawnEvent event)
    • onBlockBreakEvent

      public void onBlockBreakEvent(org.bukkit.event.block.BlockBreakEvent event)
    • onGrindstone

      public void onGrindstone(org.bukkit.event.inventory.InventoryClickEvent event)