Skip to content

Commit

Permalink
fix tab
Browse files Browse the repository at this point in the history
  • Loading branch information
aabssmc committed May 23, 2024
1 parent e0a66e4 commit c0356ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public boolean run(CommandSender sender, Command command, String[] args) {
public List<String> tabComplete(CommandSender sender, Command command, String[] args) {
if (args.length == 1){
List<String> completions = new ArrayList<>();
API.getDead().forEach(player -> completions.add(player.getName()));
Bukkit.getOnlinePlayers().forEach(player -> completions.add(player.getName()));
return completions;
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public boolean run(CommandSender sender, Command command, String[] args) {
public List<String> tabComplete(CommandSender sender, Command command, String[] args) {
if (args.length == 1){
List<String> completions = new ArrayList<>();
API.getAlive().forEach(player -> completions.add(player.getName()));
Bukkit.getOnlinePlayers().forEach(player -> completions.add(player.getName()));
return completions;
}
return null;
Expand Down

0 comments on commit c0356ca

Please sign in to comment.