command arg has spaces

Discussion in 'Plugin Development' started by dubknights, Aug 1, 2014.

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

    dubknights

    what if my command arg has spaces in it but i want to treat it like 1 arg, like this:
    /msg hello how are you

    and the hello how are you is one arg? how would i do this?
     
  2. Offline

    Gamecube762

    /<command> <arg0> <arg1> <arg2>

    If you want to add them together, try StringBuilder or loop the array and add them together:

    string out
    for s : args
    out = out + " " + s
     
Thread Status:
Not open for further replies.

Share This Page