public class WorldRulesListener
extends java.lang.Object
| Constructor and Description |
|---|
WorldRulesListener(WorldGuardPlugin plugin)
Construct the listener.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.sk89q.worldguard.protection.association.RegionAssociable |
createRegionAssociable(Cause cause) |
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 |
onPotionEffect(org.bukkit.event.entity.EntityPotionEffectEvent event) |
void |
onSpawnEntity(SpawnEntityEvent event) |
void |
registerEvents()
Register events.
|
public WorldRulesListener(WorldGuardPlugin plugin)
plugin - an instance of WorldGuardPluginpublic void onSpawnEntity(SpawnEntityEvent event)
public void onPotionEffect(org.bukkit.event.entity.EntityPotionEffectEvent 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 worldprotected com.sk89q.worldguard.protection.association.RegionAssociable createRegionAssociable(Cause cause)