From beea6879b1d71f0bf0a76517a01408dd34cf7431 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Fri, 8 Jul 2011 19:51:48 -0700 Subject: [PATCH] Edited Essentials/src/com/earth2me/essentials/commands/Commandhelp.java via GitHub --- .../src/com/earth2me/essentials/commands/Commandhelp.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java index 9d8344ec1..10e8f31ab 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java @@ -139,6 +139,13 @@ public class Commandhelp extends EssentialsCommand retval.add("§c" + k.getKey() + "§7: " + value.get("description")); } } + else if (value.containsKey("permissions") && value.get("permissions") != null && !(value.get("permissions").equals(""))) + { + if (user.isAuthorized(value.get("permissions"))) + { + retval.add("§c" + k.getKey() + "§7: " + value.get("description")); + } + } else { if (!ess.getSettings().hidePermissionlessHelp())