Add publichome and publichomelist commands

This commit is contained in:
William committed 2022-08-15 12:25:34 +01:00
1 parent c1df905b41
commit c31229c19e
11 files changed
+188 -20

No files matched your search

@@ -39,7 +39,7 @@ public class WarpCommand extends CommandBase implements TabCompletable, ConsoleE
@Override
public List<String> onTabComplete(@NotNull OnlineUser onlineUser, @NotNull String[] args) {
return plugin.getCache().warps.stream()
.filter(s -> s.startsWith(args.length >= 1 ? args[0] : ""))
.filter(s -> s.toLowerCase().startsWith(args.length >= 1 ? args[0].toLowerCase() : ""))
.sorted().collect(Collectors.toList());
}