addCommandHandler: Difference between revisions

no edit summary
No edit summary
 
No edit summary
Line 3: Line 3:
|type = function
|type = function
|name = addCommandHandler
|name = addCommandHandler
|usage = set a function to call when a player types the specified command in-game.<br>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'''
|usage = set a function to call when a player types the specified command in-game.
|notes = 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'''
|parameters = string command, function handler, [ bool replace = false ]
|parameters = string command, function handler, [ bool replace = false ]
|parameter1 = string command The command name to be typed in-game in the chat box.
|parameter1 = string command The command name to be typed in-game in the chat box.
2,603

edits