Added a permission node around player inactivity.

Using the stick, any player with this permission can see how long a
claim's owner has been offline.
This commit is contained in:
ryanhamshire
2015-10-12 16:25:48 -07:00
parent cac0266216
commit a56095e280
2 changed files with 6 additions and 2 deletions
@@ -1816,8 +1816,8 @@ class PlayerEventHandler implements Listener
GriefPrevention.sendMessage(player, TextMode.Info, " " + claim.getWidth() + "x" + claim.getHeight() + "=" + claim.getArea());
}
//if deleteclaims permission, tell about the player's offline time
if(!claim.isAdminClaim() && player.hasPermission("griefprevention.deleteclaims"))
//if permission, tell about the player's offline time
if(!claim.isAdminClaim() && (player.hasPermission("griefprevention.deleteclaims") || player.hasPermission("griefprevention.seeinactivity")))
{
if(claim.parent != null)
{