Console

Console

Object for managing, sending, and receiving messages from the server's console.

Accessable from a Server object via Server.console.

Constructor

new Console(server)

Source:
Properties:
Name Type Description
Server object

The Server object this belongs to.

Parameters:
Name Type Description
server object

The server this belongs to.

Methods

command(command)

Source:

Runs a command as if it were executed on the server console (or RCON). SourceMod API Reference

Parameters:
Name Type Description
command string

The command to be ran.

print(message)

Source:

Prints a message to the server's console. SourceMod API Reference

Parameters:
Name Type Description
message string

The message to be printed.