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

Example

function onConsoleInput( cmd, text )
{
	print( "onConsoleInput fired" );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Lifecycle and connection

Categories: Server events | Lifecycle and connection