add new permission to show claim dimensions

Show the claim size to those with griefprevention.seeclaimsize when right-clicking with the investigation tool
(stick by default) - it's not exactly private information, the claim boundaries
are visualised so it would be easy to just count the blocks or compare the
coords of the corners to find out.
This commit is contained in:
David Precious authored and RoboMWM committed 2017-03-17 09:37:58 -07:00
1 parent 3837794c56
commit 73fcd9a674
2 files changed
+5 -3

No files matched your search

@@ -1891,9 +1891,7 @@ class PlayerEventHandler implements Listener
Visualization.Apply(player, visualization);
//if can resize this claim, tell about the boundaries
if(claim.allowEdit(player) == null)
{
if (player.hasPermission("griefprevention.seeclaimsize")) {
instance.sendMessage(player, TextMode.Info, " " + claim.getWidth() + "x" + claim.getHeight() + "=" + claim.getArea());
}