private void SendLocalPlayerPacket() { if (localPlatformID != null) { ExtendedPlayerPacket localPlayerPacket = new ExtendedPlayerPacket().Init(localPlatformID); Plugin.Log?.Info($"Sending 'ExtendedPlayerPacket' with {localPlatformID}"); _sessionManager.Send(localPlayerPacket); } }
private void HandlePlayerPacket(ExtendedPlayerPacket packet, ExtendedPlayer player) { Plugin.Log?.Info($"Received 'ExtendedPlayerPacket' from '{player.userId}' with '{packet.platformID}'"); player.platformID = packet.platformID; }