Command with Strings.

Discussion in 'Plugin Development' started by CraftCreeper6, Jan 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    CraftCreeper6

    Hello, I am making an email plugin but I need to know how to do /emailsend [name] [message] to allow it to work. How would I add the Strings into the command?
    Any help would be great :) Thanks!
     
  2. Offline

    DeGambler

    CraftCreeper6 Easiest way I can think of would be a StringBuilder:
    Code:java
    1.  
    2. StringBuilder sb = new StringBuilder("");
    3. for(int i = 1; i < args.length; i++) {
    4. sb.append(args).append(" ");
    5. }


    #Ifailmustedit
     
  3. Offline

    CraftCreeper6

Thread Status:
Not open for further replies.

Share This Page