mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Add publichome and publichomelist commands
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user