Making /help <string> match the plugin name.

This commit is contained in:
KHobbits 2011-08-08 09:23:48 +01:00
parent bb6b2c9374
commit b85a5e9e0d

View File

@ -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;
}