6,865
edits
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
|note = If replace is true, the existing callback function is replaced with the new callback function specified. | |note = If replace is true, the existing callback function is replaced with the new callback function specified. | ||
|note2 = Command names are case-insensitive.<br>If a function is already added for the command, the function is only set for the command if '''replace''' is '''bool true''' | |note2 = Command names are case-insensitive.<br>If a function is already added for the command, the function is only set for the command if '''replace''' is '''bool true''' | ||
| | |cb2argSS1 = string command The command that was typed. | ||
| | |cb2argSS2 = string parameters The parameters string that was typed. | ||
| | |cb2argSS3 = Client client The client that typed the command. | ||
| | |cb2argCS1 = string command The command that was typed. | ||
| | |cb2argCS2 = string parameters The parameters string that was typed. | ||
|exampleJSSS = addCommandHandler('test', function(command, text, client) | |exampleJSSS = addCommandHandler('test', function(command, text, client) | ||
{ | { | ||
edits