Class BlacklistListener

java.lang.Object
com.sk89q.worldguard.bukkit.listener.BlacklistListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class BlacklistListener extends Object
Handle events that need to be processed by the blacklist.
  • Constructor Details

    • BlacklistListener

      public BlacklistListener(WorldGuardPlugin plugin)
      Construct the listener.
      Parameters:
      plugin - an instance of WorldGuardPlugin
  • Method Details

    • onBreakBlock

      public void onBreakBlock(BreakBlockEvent event)
    • onPlaceBlock

      public void onPlaceBlock(PlaceBlockEvent event)
    • onUseBlock

      public void onUseBlock(UseBlockEvent event)
    • onSpawnEntity

      public void onSpawnEntity(SpawnEntityEvent event)
    • onDestroyEntity

      public void onDestroyEntity(DestroyEntityEvent event)
    • onUseItem

      public void onUseItem(UseItemEvent event)
    • onPlayerDropItem

      public void onPlayerDropItem(org.bukkit.event.player.PlayerDropItemEvent event)
    • onBlockDispense

      public void onBlockDispense(org.bukkit.event.block.BlockDispenseEvent event)
    • onInventoryClick

      public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • onInventoryDrag

      public void onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event)
    • onInventoryCreative

      public void onInventoryCreative(org.bukkit.event.inventory.InventoryCreativeEvent event)
    • onPlayerItemHeld

      public void onPlayerItemHeld(org.bukkit.event.player.PlayerItemHeldEvent event)
    • onBlockDispenseArmor

      public void onBlockDispenseArmor(org.bukkit.event.block.BlockDispenseArmorEvent event)
    • registerEvents

      public void registerEvents()
      Register events.
    • getPlugin

      protected static WorldGuardPlugin getPlugin()
      Get the plugin.
      Returns:
      the plugin
    • getConfig

      protected static BukkitConfigurationManager getConfig()
      Get the global configuration.
      Returns:
      the configuration
    • getWorldConfig

      protected static BukkitWorldConfiguration getWorldConfig(String world)
      Get the world configuration given a world.
      Parameters:
      world - The world to get the configuration for.
      Returns:
      The configuration for world
    • getWorldConfig

      protected static BukkitWorldConfiguration getWorldConfig(org.bukkit.World world)
    • getWorldConfig

      protected static BukkitWorldConfiguration getWorldConfig(com.sk89q.worldguard.LocalPlayer player)
      Get the world configuration given a player.
      Parameters:
      player - The player to get the wold from
      Returns:
      The WorldConfiguration for the player's world
    • isRegionSupportEnabled

      protected static boolean isRegionSupportEnabled(org.bukkit.World world)
      Return whether region support is enabled.
      Parameters:
      world - the world
      Returns:
      true if region support is enabled
    • createRegionAssociable

      protected com.sk89q.worldguard.protection.association.RegionAssociable createRegionAssociable(Cause cause)