summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-12-20 22:57:38 +0000
committerKHobbits <rob@khobbits.co.uk>2012-12-20 22:57:38 +0000
commitcf0e36c9736cc0675fd2e4214f80f0c8b8a040fe (patch)
tree2fc6a46b3a6f8d2ac32926e2df9cbbbd3407f9fc
parent1218a0b217ddbcb335aaf55eedbe078fc78d4c87 (diff)
downloadEssentials-cf0e36c9736cc0675fd2e4214f80f0c8b8a040fe.tar
Essentials-cf0e36c9736cc0675fd2e4214f80f0c8b8a040fe.tar.gz
Essentials-cf0e36c9736cc0675fd2e4214f80f0c8b8a040fe.tar.lz
Essentials-cf0e36c9736cc0675fd2e4214f80f0c8b8a040fe.tar.xz
Essentials-cf0e36c9736cc0675fd2e4214f80f0c8b8a040fe.zip
Add support for whitelisting commands in /help by permission: essentials.help.<plugin>.<command>
-rw-r--r--Essentials/src/com/earth2me/essentials/textreader/HelpInput.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/textreader/HelpInput.java b/Essentials/src/com/earth2me/essentials/textreader/HelpInput.java
index 60d567f65..b091e2135 100644
--- a/Essentials/src/com/earth2me/essentials/textreader/HelpInput.java
+++ b/Essentials/src/com/earth2me/essentials/textreader/HelpInput.java
@@ -82,7 +82,7 @@ public class HelpInput implements IText
{
permissions = value.get(PERMISSIONS);
}
- if (isOnWhitelist)
+ if (isOnWhitelist || user.isAuthorized("essentials.help." + pluginNameLow + "." + k.getKey()))
{
pluginLines.add(_("helpLine", k.getKey(), value.get(DESCRIPTION)));
}