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
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
createTrophyDrop
(TrophyType type) 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
onEnable()
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
-
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 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
-
createTrophyDrop
-
onCommand
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String label, String[] args) - Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Overrides:
onCommand
in classorg.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)
-