Not too sure what you're trying to achieve, but, this would be set in the parameters in the document. For example, this is the pay command.Just wondering how I get what the user has entered. For example if there was a command saying :rob x 20, how would I get the '20'
public string Parameters
{
get { return "%username% %type% %amount%"; }
}
Not too sure what you're trying to achieve, but, this would be set in the parameters in the document. For example, this is the pay command.
Code:public string Parameters { get { return "%username% %type% %amount%"; } }
If this is what you're talking about that is.
Sorry I rushed this and didn't explain it properly. For example if I was making a 'Guess the number' game and two people have to keep guessing until they're correct, how would I go about doing thatParams is an array inside the command manager. Params[0] would be the command
Params[1] would be the username
Params[2] would be the amount/20
Sorry I rushed this and didn't explain it properly. For example if I was making a 'Guess the number' game and two people have to keep guessing until they're correct, how would I go about doing that