ExecuteCommandHandler
Jump to navigation
Jump to search
This function will call all the attached functions of an existing console command, for a specified player.
Syntax
bool executeCommandHandler ( string commandName, player thePlayer, [ string args ] )
Required Arguments
- commandName: The name of the command you wish to execute. This is what must be typed into the console to trigger the function.
- thePlayer: The player that will be presented as executer of the command to the handler function(s) of the command
Optional Arguments
- args: Additional parameters that will be passed to the handler function(s) of the command that is called.
Returns
Returns true if the command handler was called successfully, false otherwise.
Example
Click to expand [+]
ServerSee Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown