summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-08-08 09:23:48 +0100
committerKHobbits <rob@khobbits.co.uk>2011-08-08 09:23:48 +0100
commit7f7988d3da5d565d7c177d277cabfd04f903a4fe (patch)
tree950aa322f5d9262af5d1da066df3b0182e03a148
parent67eee34626c7e482e0f66ebae81468cb28e14286 (diff)
downloadEssentials-7f7988d3da5d565d7c177d277cabfd04f903a4fe.tar
Essentials-7f7988d3da5d565d7c177d277cabfd04f903a4fe.tar.gz
Essentials-7f7988d3da5d565d7c177d277cabfd04f903a4fe.tar.lz
Essentials-7f7988d3da5d565d7c177d277cabfd04f903a4fe.tar.xz
Essentials-7f7988d3da5d565d7c177d277cabfd04f903a4fe.zip
Making /help <string> match the plugin name.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhelp.java3
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;
}