mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-02 09:52:19 +00:00
Fixing allowlist command tab complete for args
This commit is contained in:
@@ -97,8 +97,8 @@ public class AllowlistCommand extends Command {
|
||||
public List<String> tabComplete(CommandExecutor executor, String alias, String[] args) {
|
||||
switch(args.length) {
|
||||
case 1: {
|
||||
return Arrays.stream(args)
|
||||
.filter(narg -> narg.startsWith(args[0]))
|
||||
return Arrays.stream(secondArgs)
|
||||
.filter(narg -> narg.toLowerCase().startsWith(args[0].toLowerCase()))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
case 2: {
|
||||
|
||||
Reference in New Issue
Block a user