.
This commit is contained in:
parent
a2d1153ae8
commit
a8807c9d7e
7 changed files with 16 additions and 11 deletions
|
|
@ -6,6 +6,7 @@ import de.kentoj.kencommandapi.api.CommandHandler;
|
|||
import de.kentoj.kencommandapi.api.literal.RootLiteral;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@RequiredArgsConstructor
|
||||
|
|
@ -16,7 +17,8 @@ public class VelocityCommand implements RawCommand {
|
|||
|
||||
@Override
|
||||
public void execute(Invocation invocation) {
|
||||
var args = invocation.arguments().split(" ");
|
||||
var args = Arrays.stream(invocation.arguments().split(" "))
|
||||
.filter(a -> !a.isEmpty());
|
||||
commandHandler.invoke(rootNode, invocation.source(), args);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue