Scripting/Server/Events/onConsoleInput
A line was typed in the server console. The first word is cmd, the rest is text. The built-in say <message> command is handled by the server itself.
Syntax
onConsoleInput(cmd, text)Arguments
- string cmd – The first word is
cmd, the rest istext. - string text – The first word is
cmd, the rest istext.
Example
function onConsoleInput( cmd, text )
{
print( "onConsoleInput fired" );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Lifecycle and connection
Categories: Server events | Lifecycle and connection