mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 02:59:06 +02:00
Making /help <string> match the plugin name.
This commit is contained in:
@@ -120,7 +120,8 @@ public class Commandhelp extends EssentialsCommand
|
|||||||
for (Entry<String, HashMap<String, String>> k : cmds.entrySet())
|
for (Entry<String, HashMap<String, String>> k : cmds.entrySet())
|
||||||
{
|
{
|
||||||
if ((!match.equalsIgnoreCase("")) && (!k.getKey().toLowerCase().contains(match))
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user