OnPlayerIncomingConnection
This event is triggered when an player establishes a connection with the server before loading the resources.
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
- gameType: parameter input should be in GameTypes type
- cancel: parameter input should be in CancelEventArgs type
Example
[ServerEvent(Event.IncomingConnection)]
public void OnIncomingConnection(string ip, string serial, string rgscName, ulong rgscId, GameTypes gameType, CancelEventArgs cancel)
{
NAPI.Util.ConsoleOutput($"Connecting: {rgscName} - {ip} - {serial} - {rgscId} - {gameType}");
}