From b85a5e9e0de29246b78a8ff2c14334c854d1b033 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Mon, 8 Aug 2011 09:23:48 +0100 Subject: [PATCH] Making /help match the plugin name. --- .../src/com/earth2me/essentials/commands/Commandhelp.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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> 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; }