OnPlayerIncomingConnection
This event is triggered when a player connects to the server.
C# Syntax
[ServerEvent(Event.IncomingConnection)]
Parameters
- ip: parameter input should be in string type
- serial: parameter input should be in string type
- rgscName: parameter input should be in string type
- rgscId: parameter input should be in ulong type
- cancel: parameter input should be in CancelEventArgs type
Example
[ServerEvent(Event.IncomingConnection)]
public void OnIncomingConnection(string ip, string serial, string rgscName, ulong rgscId, CancelEventArgs cancel)
{
NAPI.Util.ConsoleOutput($"Connecting: {rgscName} - {ip} - {serial} - {rgscId}");
}