mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-24 11:36:11 +01:00
Merge pull request #107 from Moo0/infobounds
Add region bounds to "/region info"
This commit is contained in:
commit
e9d85da691
@ -438,6 +438,11 @@ public static void info(CommandContext args, WorldGuardPlugin plugin,
|
|||||||
+ owners.toUserFriendlyString());
|
+ owners.toUserFriendlyString());
|
||||||
sender.sendMessage(ChatColor.LIGHT_PURPLE + "Members: "
|
sender.sendMessage(ChatColor.LIGHT_PURPLE + "Members: "
|
||||||
+ members.toUserFriendlyString());
|
+ members.toUserFriendlyString());
|
||||||
|
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"},
|
@Command(aliases = {"list"},
|
||||||
|
Loading…
Reference in New Issue
Block a user