diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-08-08 09:23:48 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-08-08 09:23:48 +0100 |
commit | b85a5e9e0de29246b78a8ff2c14334c854d1b033 (patch) | |
tree | a59ccc82a4379f0e8c6a4df69273d66cf371e70b | |
parent | bb6b2c9374964289477b540bb83a3dabcb101a4c (diff) | |
download | Essentials-b85a5e9e0de29246b78a8ff2c14334c854d1b033.tar Essentials-b85a5e9e0de29246b78a8ff2c14334c854d1b033.tar.gz Essentials-b85a5e9e0de29246b78a8ff2c14334c854d1b033.tar.lz Essentials-b85a5e9e0de29246b78a8ff2c14334c854d1b033.tar.xz Essentials-b85a5e9e0de29246b78a8ff2c14334c854d1b033.zip |
Making /help <string> match the plugin name.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandhelp.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java index 2b1ba9776..d73a2706b 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhelp.java @@ -120,7 +120,8 @@ public class Commandhelp extends EssentialsCommand for (Entry<String, HashMap<String, String>> k : cmds.entrySet()) { if ((!match.equalsIgnoreCase("")) && (!k.getKey().toLowerCase().contains(match)) - && (!k.getValue().get("description").toLowerCase().contains(match))) + && (!k.getValue().get("description").toLowerCase().contains(match)) + && (!p.getDescription().getName().contains(match))) { continue; } |