Add isRegionSupportEnabled(World) to AbstractListener.

This commit is contained in:
sk89q 2014-08-18 23:31:09 -07:00
parent 711fe7ad2f
commit 2c81cb2f84

View File

@ -90,4 +90,14 @@ protected WorldConfiguration getWorldConfig(Player player) {
return getWorldConfig(player.getWorld());
}
/**
* Return whether region support is enabled.
*
* @param world the world
* @return true if region support is enabled
*/
protected boolean isRegionSupportEnabled(World world) {
return getWorldConfig(world).useRegions;
}
}