public void LoadCurrentPlayers() { foreach (var client in Provider.clients) { UnturnedPlayer Player = UnturnedPlayer.FromSteamPlayer(client); PlayerDataStore.TryRegisterPlayer(Player); PlayerSessionStore.TryRegisterPlayer(Player); } }
private void Events_OnBeforePlayerConnected(UnturnedPlayer player) { PlayerSessionStore.TryRegisterPlayer(player); PlayerDataStore.TryRegisterPlayer(player); }