mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-10-03 01:58:15 +02:00
Making /help <string> match the plugin name.
This commit is contained in:
parent
bb6b2c9374
commit
b85a5e9e0d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user