mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Filter warps in TAB completion user lacks access for
This commit is contained in:
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();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user