From 7074963fb1d481b17a67a50d8e7ccbaec265040b Mon Sep 17 00:00:00 2001 From: Moo0 Date: Mon, 23 May 2011 19:48:02 +0100 Subject: [PATCH 1/2] Add region bounds to "/region info" --- .../sk89q/worldguard/bukkit/commands/RegionCommands.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java b/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java index 5de12dbc..68b07f75 100755 --- a/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java @@ -434,6 +434,13 @@ public static void info(CommandContext args, WorldGuardPlugin plugin, + owners.toUserFriendlyString()); sender.sendMessage(ChatColor.LIGHT_PURPLE + "Members: " + members.toUserFriendlyString()); + if (plugin.hasPermission(sender, "worldguard.region.bounds")) { + BlockVector min = region.getMinimumPoint(); + BlockVector max = region.getMaximumPoint(); + String c = "(" + min.getBlockX() + "," + min.getBlockY() + "," + min.getBlockZ() + ")"; + c += " (" +max.getBlockX() + "," + max.getBlockY() + "," + max.getBlockZ() + ")"; + sender.sendMessage(ChatColor.LIGHT_PURPLE + "Bounds: " + c); + } } @Command(aliases = {"list"}, From 69af41f1e50bd416cfc065504dc7041fe17bf16a Mon Sep 17 00:00:00 2001 From: Moo0 Date: Tue, 24 May 2011 16:25:45 +0100 Subject: [PATCH 2/2] Remove permission. --- .../worldguard/bukkit/commands/RegionCommands.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java b/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java index 68b07f75..ff6e6e74 100755 --- a/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/commands/RegionCommands.java @@ -434,13 +434,11 @@ public static void info(CommandContext args, WorldGuardPlugin plugin, + owners.toUserFriendlyString()); sender.sendMessage(ChatColor.LIGHT_PURPLE + "Members: " + members.toUserFriendlyString()); - if (plugin.hasPermission(sender, "worldguard.region.bounds")) { - BlockVector min = region.getMinimumPoint(); - BlockVector max = region.getMaximumPoint(); - String c = "(" + min.getBlockX() + "," + min.getBlockY() + "," + min.getBlockZ() + ")"; - c += " (" +max.getBlockX() + "," + max.getBlockY() + "," + max.getBlockZ() + ")"; - sender.sendMessage(ChatColor.LIGHT_PURPLE + "Bounds: " + c); - } + BlockVector min = region.getMinimumPoint(); + BlockVector max = region.getMaximumPoint(); + String c = "(" + min.getBlockX() + "," + min.getBlockY() + "," + min.getBlockZ() + ")"; + c += " (" +max.getBlockX() + "," + max.getBlockY() + "," + max.getBlockZ() + ")"; + sender.sendMessage(ChatColor.LIGHT_PURPLE + "Bounds: " + c); } @Command(aliases = {"list"},