Filter warps in TAB completion user lacks access for

This commit is contained in:
William committed 2023-03-27 23:51:37 +01:00
1 parent aaea118bed
commit 54cfa16bd7
2 files changed
+13 -1

No files matched your search

@@ -154,7 +154,7 @@ public abstract class SavedPositionCommand<T extends SavedPosition> extends Comm
};
} else {
return switch (args.length) {
case 0, 1 -> filter(plugin.getManager().warps().getWarps(), args);
case 0, 1 -> filter(plugin.getManager().warps().getUsableWarps(executor), args);
case 2 -> filter(arguments.stream().toList(), args);
default -> List.of();
};