Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Whitespaces in command argument #253

Open
Endothelium opened this issue Feb 8, 2020 · 0 comments
Open

Whitespaces in command argument #253

Endothelium opened this issue Feb 8, 2020 · 0 comments
Labels
core Related to the ACF Core

Comments

@Endothelium
Copy link

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 !

@chickeneer chickeneer added the core Related to the ACF Core label Jun 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
core Related to the ACF Core
Projects
None yet
Development

No branches or pull requests

2 participants