From 82e04ac4e528ac3039d5689b7032032a636fac9d Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 27 Jun 2011 11:23:33 -0700 Subject: [PATCH] Changed /region {add|rem}{member|owner} to allow putting owners/members on the global region. --- .../bukkit/commands/RegionMemberCommands.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionMemberCommands.java b/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionMemberCommands.java index 8e28596d..ad1c2410 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionMemberCommands.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionMemberCommands.java @@ -49,10 +49,6 @@ public static void addMember(CommandContext args, WorldGuardPlugin plugin, LocalPlayer localPlayer = plugin.wrapPlayer(player); String id = args.getString(0); - - if (id.equalsIgnoreCase("__global__")) { - throw new CommandException("The region cannot be named __global__"); - } RegionManager mgr = plugin.getGlobalRegionManager().get(world); ProtectedRegion region = mgr.getRegion(id); @@ -94,10 +90,6 @@ public static void addOwner(CommandContext args, WorldGuardPlugin plugin, LocalPlayer localPlayer = plugin.wrapPlayer(player); String id = args.getString(0); - - if (id.equalsIgnoreCase("__global__")) { - throw new CommandException("The region cannot be named __global__"); - } RegionManager mgr = plugin.getGlobalRegionManager().get(world); ProtectedRegion region = mgr.getRegion(id); @@ -139,10 +131,6 @@ public static void removeMember(CommandContext args, WorldGuardPlugin plugin, LocalPlayer localPlayer = plugin.wrapPlayer(player); String id = args.getString(0); - - if (id.equalsIgnoreCase("__global__")) { - throw new CommandException("The region cannot be named __global__"); - } RegionManager mgr = plugin.getGlobalRegionManager().get(world); ProtectedRegion region = mgr.getRegion(id); @@ -184,10 +172,6 @@ public static void removeOwner(CommandContext args, WorldGuardPlugin plugin, LocalPlayer localPlayer = plugin.wrapPlayer(player); String id = args.getString(0); - - if (id.equalsIgnoreCase("__global__")) { - throw new CommandException("The region cannot be named __global__"); - } RegionManager mgr = plugin.getGlobalRegionManager().get(world); ProtectedRegion region = mgr.getRegion(id);