Skip to content

Commit

Permalink
Add debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
lscgh committed Feb 6, 2024
1 parent fdf2ff5 commit 5dd4ac7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ public List<String> onTabComplete(CommandSender sender, Command command, String

if(!(sender instanceof Player)) return new ArrayList<String>();

sender.sendMessage("Your array-args: " + args);

ArrayList<String> argList = new ArrayList<String>();
for(String arg: args) argList.add(arg);
argList.removeIf((arg) -> arg.isEmpty());

sender.sendMessage("You args: " + argList + "; (count " + argList.size() + ")!!");
sender.sendMessage("Your args: " + argList + "; (count " + argList.size() + ")!!");

ArrayList<String> completions = new ArrayList<String>();

Expand Down

0 comments on commit 5dd4ac7

Please sign in to comment.