minny.zephyrus.hooks
Class PluginHook

java.lang.Object
  extended by minny.zephyrus.hooks.PluginHook

public class PluginHook
extends java.lang.Object

Zephyrus

Author:
minnymin3

Field Summary
static net.milkbowl.vault.economy.Economy econ
           
 
Constructor Summary
PluginHook()
           
 
Method Summary
static boolean allowExplosion()
           
static boolean canBuild(org.bukkit.entity.Player player, org.bukkit.block.Block block)
          Checks if the player can build
static boolean canBuild(org.bukkit.entity.Player player, org.bukkit.Location loc)
          Checks if the player can build
static boolean economy()
          Determines if Vault is installed
static void hookEcon()
          Hooks into Vault
static void hookWG()
          Hooks into WorldGuard
static boolean worldGuard()
          Determines if WorldGuard is installed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

econ

public static net.milkbowl.vault.economy.Economy econ
Constructor Detail

PluginHook

public PluginHook()
Method Detail

worldGuard

public static boolean worldGuard()
Determines if WorldGuard is installed

Returns:
True if WorldGuard is installed, false otherwise

economy

public static boolean economy()
Determines if Vault is installed

Returns:
True if Vault is installed, false otherwise

hookEcon

public static void hookEcon()
Hooks into Vault


hookWG

public static void hookWG()
Hooks into WorldGuard


canBuild

public static boolean canBuild(org.bukkit.entity.Player player,
                               org.bukkit.block.Block block)
Checks if the player can build

Parameters:
player - The player in question
block - The block in question
Returns:
True if the player can build, false otherwise

canBuild

public static boolean canBuild(org.bukkit.entity.Player player,
                               org.bukkit.Location loc)
Checks if the player can build

Parameters:
player - The player in question
block - The location in question
Returns:
True if the player can build, false otherwise

allowExplosion

public static boolean allowExplosion()