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
commit1f4c0aabc2740625c2393149a454cb244a781504 (patch)
tree6521641c52f855e75a5dcf6ca4f699874e0692c0
parenta0c92264731bba781bdc55cd942ed4f7e60b0229 (diff)
downloadEssentials-1f4c0aabc2740625c2393149a454cb244a781504.tar
Essentials-1f4c0aabc2740625c2393149a454cb244a781504.tar.gz
Essentials-1f4c0aabc2740625c2393149a454cb244a781504.tar.lz
Essentials-1f4c0aabc2740625c2393149a454cb244a781504.tar.xz
Essentials-1f4c0aabc2740625c2393149a454cb244a781504.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())