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
2017-03-17 09:37:58 -07:00
committed by RoboMWM
parent 3837794c56
commit 73fcd9a674
2 changed files with 5 additions and 3 deletions
@@ -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());
}