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:
parent
cac0266216
commit
a56095e280
|
|
@ -213,6 +213,7 @@ permissions:
|
|||
griefprevention.eavesdropsigns: true
|
||||
griefprevention.claimbook: true
|
||||
griefprevention.notignorable: true
|
||||
griefprevention.seeinactivity: true
|
||||
griefprevention.siegeimmune:
|
||||
description: Makes a player immune to /Siege.
|
||||
default: op
|
||||
|
|
@ -291,3 +292,6 @@ permissions:
|
|||
griefprevention.notignorable:
|
||||
description: Players with this permission can't be ignored.
|
||||
default: op
|
||||
griefprevention.seeinactivity:
|
||||
description: Players with this permission can see how long a claim owner has been offline.
|
||||
default: op
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user