ClientConnected(string, string)

shared
Called every time a client connects to the server. Return false to reject the connection (with an optional reject message).

Arguments

Returns

Note: Returning is not required

Returning from hooks is not required. Only do so if you mean to override behaviour. The first hook that returns a value will be the final value, skipping all following hooks.

Examples

hook ClientConnected – "Called every time a client connects to the server. Return false to reject the connection (with an optional reject message)."