public static boolean canBlockForm(Block block, BlockState newState) {
if (!shouldUseProtection()) return true;
if (CraftBookPlugin.inst().getConfiguration().advancedBlockChecks) {
BlockFormEvent event = new BlockFormEvent(block, newState);
EventUtil.ignoreEvent(event);
CraftBookPlugin.inst().getServer().getPluginManager().callEvent(event);
return !event.isCancelled();
}
if (!CraftBookPlugin.inst().getConfiguration().obeyWorldguard || CraftBookPlugin.plugins.getWorldGuard() == null) return true;
if(newState.getType() == Material.SNOW || newState.getType() == Material.ICE)
return CraftBookPlugin.plugins.getWorldGuard().createProtectionQuery().testBlockPlace(null, block.getLocation(), newState.getType());