1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-09-21 11:51:41 +02:00

Making /help <string> match the plugin name.

This commit is contained in:
KHobbits
2011-08-08 09:23:48 +01:00
parent 67eee34626
commit 7f7988d3da

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