diff --git a/src/de/steamwar/command/SWCommand.java b/src/de/steamwar/command/SWCommand.java index 9b931a3..52845d2 100644 --- a/src/de/steamwar/command/SWCommand.java +++ b/src/de/steamwar/command/SWCommand.java @@ -83,7 +83,11 @@ public class SWCommand extends AbstractSWCommand { @Override public List suggest(Invocation invocation) { - return SWCommand.this.tabComplete(Chatter.of(invocation.source()), invocation.alias(), invocation.arguments()); + String[] args = invocation.arguments(); + if(args.length == 0) + args = new String[]{""}; + + return SWCommand.this.tabComplete(Chatter.of(invocation.source()), invocation.alias(), args); } @Override