From 37bb74ec4855ef9357078432b7819f45791e216b Mon Sep 17 00:00:00 2001 From: ryanhamshire Date: Wed, 11 Feb 2015 15:43:15 -0800 Subject: [PATCH] Added /ClaimsList permission. --- plugin.yml | 4 ++++ src/me/ryanhamshire/GriefPrevention/GriefPrevention.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin.yml b/plugin.yml index 2534493..7fc5d09 100644 --- a/plugin.yml +++ b/plugin.yml @@ -168,6 +168,10 @@ permissions: griefprevention.visualizenearbyclaims: true griefprevention.overrideclaimcountlimit: true griefprevention.transferclaim: true + griefprevention.claimslistother: true + griefprevention.claimslistother: + description: Grants permission to use /ClaimsList to get another player's information. + default: op griefprevention.restorenature: description: Grants permission to use /RestoreNature. default: op diff --git a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java index 66c094b..89b11bb 100644 --- a/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -1590,7 +1590,7 @@ public class GriefPrevention extends JavaPlugin } //otherwise if no permission to delve into another player's claims data - else if(player != null && !player.hasPermission("griefprevention.deleteclaims")) + else if(player != null && !player.hasPermission("griefprevention.claimslistother")) { GriefPrevention.sendMessage(player, TextMode.Err, Messages.ClaimsListNoPermission); return true;