public class DebuggingListener
extends java.lang.Object
| Constructor and Description |
|---|
DebuggingListener(WorldGuardPlugin plugin,
java.util.logging.Logger logger)
Construct the listener.
|
| Modifier and Type | Method and Description |
|---|---|
protected static com.sk89q.worldguard.config.ConfigurationManager |
getConfig()
Get the global configuration.
|
protected WorldGuardPlugin |
getPlugin()
Get the plugin.
|
protected static com.sk89q.worldguard.config.WorldConfiguration |
getWorldConfig(com.sk89q.worldguard.LocalPlayer player)
Get the world configuration given a player.
|
protected static com.sk89q.worldguard.config.WorldConfiguration |
getWorldConfig(com.sk89q.worldedit.world.World world)
Get the world configuration given a world.
|
protected static boolean |
isRegionSupportEnabled(com.sk89q.worldedit.world.World world)
Return whether region support is enabled.
|
void |
onBreakBlock(BreakBlockEvent event) |
void |
onDamageEntity(DamageEntityEvent event) |
void |
onDestroyEntity(DestroyEntityEvent event) |
void |
onPlaceBlock(PlaceBlockEvent event) |
void |
onSpawnEntity(SpawnEntityEvent event) |
void |
onUseBlock(UseBlockEvent event) |
void |
onUseEntity(UseEntityEvent event) |
void |
onUseItem(UseItemEvent event) |
void |
registerEvents()
Register events.
|
public DebuggingListener(WorldGuardPlugin plugin, java.util.logging.Logger logger)
plugin - an instance of WorldGuardPluginlogger - the loggerpublic void onPlaceBlock(PlaceBlockEvent event)
public void onBreakBlock(BreakBlockEvent event)
public void onUseBlock(UseBlockEvent event)
public void onSpawnEntity(SpawnEntityEvent event)
public void onDestroyEntity(DestroyEntityEvent event)
public void onUseEntity(UseEntityEvent event)
public void onDamageEntity(DamageEntityEvent event)
public void onUseItem(UseItemEvent event)
public void registerEvents()
protected WorldGuardPlugin getPlugin()
protected static com.sk89q.worldguard.config.ConfigurationManager getConfig()
protected static com.sk89q.worldguard.config.WorldConfiguration getWorldConfig(com.sk89q.worldedit.world.World world)
world - The world to get the configuration for.worldprotected static com.sk89q.worldguard.config.WorldConfiguration getWorldConfig(com.sk89q.worldguard.LocalPlayer player)
player - The player to get the wold fromWorldConfiguration for the player's worldprotected static boolean isRegionSupportEnabled(com.sk89q.worldedit.world.World world)
world - the world