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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user