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