public void OnServerConnect(Player player) { var mymod = ModHelpersMod.Instance; this.HasSyncedWorldData = true; this.IsSynced = true; // Technically this should only be set upon sync receipt of player's 'old' uid... CustomLoadHooks.TriggerHook(PlayerLogic.ServerConnectHookValidator, PlayerLogic.MyValidatorKey, player.whoAmI); PlayerOldIdProtocol.QuickRequestToClient(player.whoAmI); PlayerNewIdProtocol.QuickRequestToClient(player.whoAmI); }
public void OnCurrentClientConnect(Player player) { PlayerNewIdProtocol.QuickSendToServer(); }