aikar / aikar/commands

Whitespaces in command argument

Open
#253 0 comments 0 reactions 0 assignees View on GitHub
core
Dominant language
Java
Stars
628
Forks
150
PR merge metrics
No merged PRs in 30d

Description

Hello,

Is there a way to define String argument as full sentence with whitespaces and quote like this :

`/command "first sentence" "second sentence"`

```
@CommandAlias("command")
public void onCommand(String arg1,String arg2){
System.out.println("arg1: " + arg1);
System.out.println("arg2: " + arg2);
}
```

```
Result :
arg1: first sentence
arg2: second sentence
```

Thanks !

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.