[Solved] Getting Text From Player's Command

Discussion in 'Plugin Development' started by xboxnolifes, Aug 10, 2012.

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

    xboxnolifes

    I wasn't entirely sure what to search in order to find this, but It seems easy enough. I'm just not sure how to do it.

    I need to save EVERYTHING after the command /shout for later use.

    Example:
    Someone says:
    /shout Hello World

    I want to save Hello World in a variable.
     
  2. Offline

    TheSmallBones

    Code:
    StringBuilder b = new StringBuilder();
    for (int i = 0; i < args.length; i++) {
        if (i != 0)
            b.append(' ');
        b.append(args[i]);
    }
     
    xboxnolifes likes this.
  3. Offline

    xboxnolifes

    Thank you it worked :)
     
Thread Status:
Not open for further replies.

Share This Page