Fix TAB completion for console

This commit is contained in:
William committed 2022-08-23 17:27:10 +01:00
1 parent 6d6863c55b
commit 91dd3b5470
2 files changed
+3 -5

No files matched your search

@@ -67,7 +67,7 @@ public class BukkitCommand implements CommandExecutor, TabExecutor {
public List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command,
@NotNull String alias, @NotNull String[] args) {
if (this.command instanceof TabCompletable tabCompletable) {
return tabCompletable.onTabComplete(BukkitPlayer.adapt((Player) sender), args);
return tabCompletable.onTabComplete(args);
}
return Collections.emptyList();
}