public void OnServerConnect(Player player) { var mymod = ModHelpersMod.Instance; this.HasSyncedModSettings = true; this.HasSyncedWorldData = true; this.IsSynced = true; // Technically this should only be set upon sync receipt of player's 'old' uid... var args = new PlayerLogicPromiseArguments { Who = player.whoAmI }; Promises.TriggerValidatedPromise(PlayerLogic.ServerConnectValidator, PlayerLogic.MyValidatorKey, args); PacketProtocolSentToEither.QuickRequestToClient <PlayerOldIdProtocol>(player.whoAmI, -1, -1); PacketProtocolSentToEither.QuickRequestToClient <PlayerNewIdProtocol>(player.whoAmI, -1, -1); }
public static void QuickRequestToClient(int playerWho) { PacketProtocolSentToEither.QuickRequestToClient <PlayerNewIdProtocol>(playerWho, -1, -1); }