public class ChestProtectionListener extends Object
| Constructor and Description |
|---|
ChestProtectionListener(WorldGuardPlugin plugin)
Construct the listener.
|
| Modifier and Type | Method and Description |
|---|---|
protected ConfigurationManager |
getConfig()
Get the global configuration.
|
protected WorldGuardPlugin |
getPlugin()
Get the plugin.
|
protected WorldConfiguration |
getWorldConfig(org.bukkit.entity.Player player)
Get the world configuration given a player.
|
protected WorldConfiguration |
getWorldConfig(org.bukkit.World world)
Get the world configuration given a world.
|
protected boolean |
isRegionSupportEnabled(org.bukkit.World world)
Return whether region support is enabled.
|
void |
onBreakBlock(BreakBlockEvent event) |
void |
onPlaceBlock(PlaceBlockEvent event) |
void |
onSignChange(org.bukkit.event.block.SignChangeEvent event) |
void |
onUseBlock(UseBlockEvent event) |
void |
registerEvents()
Register events.
|
public ChestProtectionListener(WorldGuardPlugin plugin)
plugin - an instance of WorldGuardPluginpublic void onPlaceBlock(PlaceBlockEvent event)
public void onBreakBlock(BreakBlockEvent event)
public void onUseBlock(UseBlockEvent event)
public void onSignChange(org.bukkit.event.block.SignChangeEvent event)
public void registerEvents()
protected WorldGuardPlugin getPlugin()
protected ConfigurationManager getConfig()
protected WorldConfiguration getWorldConfig(org.bukkit.World world)
world - The world to get the configuration for.worldprotected WorldConfiguration getWorldConfig(org.bukkit.entity.Player player)
player - The player to get the wold fromWorldConfiguration for the player's worldprotected boolean isRegionSupportEnabled(org.bukkit.World world)
world - the worldCopyright © 2015. All Rights Reserved.