mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 02:27:42 +01:00
Add region bounds to "/region info"
This commit is contained in:
parent
88acbe655d
commit
7074963fb1
@ -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"},
|
||||
|
Loading…
Reference in New Issue
Block a user