Fix jail check not tab completing online names
This commit is contained in:
parent
3225c6e853
commit
a602bf77fe
@ -55,8 +55,9 @@ public class JailCheckCommand implements Command {
|
||||
|
||||
Collections.sort(results);
|
||||
|
||||
if(args.length == 1)
|
||||
if(args.length == 2)
|
||||
for(Player p : jm.getPlugin().getServer().getOnlinePlayers())
|
||||
if(args[1].isEmpty() || StringUtil.startsWithIgnoreCase(p.getName(), args[1]))
|
||||
if(!results.contains(p.getName()))
|
||||
results.add(p.getName());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user