OnSendCommand
Usage​
- Called before a command is sent from the server to a player (or a group of players)
- Usually commands aren't sent to a group of players, so in most cases it's safe to use only OnSendCommand with a single Connection.
- Return a non-null value to override command arguments
Examples​
""
object OnSendCommand(List<Connection> connections, string command, object[] args)
{
Puts("OnSendCommand works!");
return null;
}
""
object OnSendCommand(Network.Connection connection, string command, object[] args)
{
Puts("OnSendCommand works!");
return null;
}