public class BlacklistListener
extends java.lang.Object
| Constructor and Description |
|---|
BlacklistListener(WorldGuardPlugin plugin)
Construct the listener.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.sk89q.worldguard.config.ConfigurationManager |
getConfig()
Get the global configuration.
|
protected WorldGuardPlugin |
getPlugin()
Get the plugin.
|
protected com.sk89q.worldguard.config.WorldConfiguration |
getWorldConfig(com.sk89q.worldguard.LocalPlayer player)
Get the world configuration given a player.
|
protected com.sk89q.worldguard.config.WorldConfiguration |
getWorldConfig(com.sk89q.worldedit.world.World world)
Get the world configuration given a world.
|
protected boolean |
isRegionSupportEnabled(com.sk89q.worldedit.world.World world)
Return whether region support is enabled.
|
void |
onBlockDispense(org.bukkit.event.block.BlockDispenseEvent event) |
void |
onBreakBlock(BreakBlockEvent event) |
void |
onDestroyEntity(DestroyEntityEvent event) |
void |
onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) |
void |
onInventoryCreative(org.bukkit.event.inventory.InventoryCreativeEvent event) |
void |
onPlaceBlock(PlaceBlockEvent event) |
void |
onPlayerDropItem(org.bukkit.event.player.PlayerDropItemEvent event) |
void |
onPlayerItemHeld(org.bukkit.event.player.PlayerItemHeldEvent event) |
void |
onSpawnEntity(SpawnEntityEvent event) |
void |
onUseBlock(UseBlockEvent event) |
void |
onUseItem(UseItemEvent event) |
void |
registerEvents()
Register events.
|
public BlacklistListener(WorldGuardPlugin plugin)
plugin - an instance of WorldGuardPluginpublic void onBreakBlock(BreakBlockEvent event)
public void onPlaceBlock(PlaceBlockEvent event)
public void onUseBlock(UseBlockEvent event)
public void onSpawnEntity(SpawnEntityEvent event)
public void onDestroyEntity(DestroyEntityEvent event)
public void onUseItem(UseItemEvent event)
public void onPlayerDropItem(org.bukkit.event.player.PlayerDropItemEvent event)
public void onBlockDispense(org.bukkit.event.block.BlockDispenseEvent event)
public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
public void onInventoryCreative(org.bukkit.event.inventory.InventoryCreativeEvent event)
public void onPlayerItemHeld(org.bukkit.event.player.PlayerItemHeldEvent event)
public void registerEvents()
protected WorldGuardPlugin getPlugin()
protected com.sk89q.worldguard.config.ConfigurationManager getConfig()
protected com.sk89q.worldguard.config.WorldConfiguration getWorldConfig(com.sk89q.worldedit.world.World world)
world - The world to get the configuration for.worldprotected com.sk89q.worldguard.config.WorldConfiguration getWorldConfig(com.sk89q.worldguard.LocalPlayer player)
player - The player to get the wold fromWorldConfiguration for the player's worldprotected boolean isRegionSupportEnabled(com.sk89q.worldedit.world.World world)
world - the world