Solved Multiple args as a sentence

Discussion in 'Spigot Plugin Development' started by Skeagle, Aug 8, 2018.

Thread Status:
Not open for further replies.
  1. I want to make multiple args count as a sentence, is this possible? In my case, I'm trying to make a rename command for my plugin. So I would want something like:
    Code (Text):
    /rename this is an example
     
  2. Choco

    Moderator

    String has a handy #join() method you can use to concatenate a String[].
    Code (Java):
    String message = String.join(" ", args);
     
  3. That works, thanks!
     
Thread Status:
Not open for further replies.