summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-07-27 14:25:41 +0100
committerKHobbits <rob@khobbits.co.uk>2011-07-27 14:25:41 +0100
commit7b18343e7518277914fc1a889dc93ded49379615 (patch)
tree04493f03bb2c0b5d6011041d95ce9e2b01468efa
parentd6dc6d1d39cfa9137f067e0e46f130f2f09b4254 (diff)
downloadEssentials-7b18343e7518277914fc1a889dc93ded49379615.tar
Essentials-7b18343e7518277914fc1a889dc93ded49379615.tar.gz
Essentials-7b18343e7518277914fc1a889dc93ded49379615.tar.lz
Essentials-7b18343e7518277914fc1a889dc93ded49379615.tar.xz
Essentials-7b18343e7518277914fc1a889dc93ded49379615.zip
Adding a permission for unhiding help.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhelp.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
index 07945b75b..2b1ba9776 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java
@@ -153,6 +153,10 @@ public class Commandhelp extends EssentialsCommand
retval.add("§c" + k.getKey() + "§7: " + value.get("description"));
}
}
+ else if (user.isAuthorized("essentials.help." + pluginName))
+ {
+ retval.add("§c" + k.getKey() + "§7: " + value.get("description"));
+ }
else
{
if (!ess.getSettings().hidePermissionlessHelp())