From e17944f6ccc1133cacc9a29069c14cca20b3f5be Mon Sep 17 00:00:00 2001 From: Shevchik Date: Thu, 6 Mar 2014 16:49:38 +0400 Subject: [PATCH] Reformat this --- src/com/cnaude/chairs/pluginhooks/WGHook.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/com/cnaude/chairs/pluginhooks/WGHook.java b/src/com/cnaude/chairs/pluginhooks/WGHook.java index baa61a8..a113577 100644 --- a/src/com/cnaude/chairs/pluginhooks/WGHook.java +++ b/src/com/cnaude/chairs/pluginhooks/WGHook.java @@ -12,20 +12,16 @@ import com.sk89q.worldguard.bukkit.WGBukkit; public class WGHook { public static boolean isAllowedInRegion(HashSet disabledRegions, Location location) { - if (Bukkit.getPluginManager().getPlugin("WorldGuard") == null) - { + if (Bukkit.getPluginManager().getPlugin("WorldGuard") == null) { return true; } - if (disabledRegions.isEmpty()) - { + if (disabledRegions.isEmpty()) { return true; } List aregions = WGBukkit.getRegionManager(location.getWorld()).getApplicableRegionsIDs(BukkitUtil.toVector(location)); - for (String region : aregions) - { - if (disabledRegions.contains(region)) - { + for (String region : aregions) { + if (disabledRegions.contains(region)) { return false; } }