Ignore:
Timestamp:
Apr 2, 2015, 9:16:34 PM (10 years ago)
Author:
alloc
Message:

A11 preps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/AllocsLogFunctions.cs

    r203 r224  
    3131                                PersistentContainer.Instance.Players [steamId].SetOnline (ci);
    3232                                PersistentData.PersistentContainer.Instance.Save ();
     33
     34                                Mods.CallRequestToSpawnPlayer (_clientId, _name, _chunkViewDim, _playerProfile);
    3335                        } catch (Exception e) {
    3436                                Log.Out ("Error in AllocsLogFunctions.RequestToSpawnPlayer: " + e);
     
    3638                }
    3739
    38                 public static void PlayerDisconnected (ConnectionManager manager, int _clientId, bool _bShutdown)
     40                public static void PlayerDisconnected (ConnectionManager manager, ClientInfo _cInfo, bool _bShutdown)
    3941                {
    4042                        try {
    41                                 Player p = PersistentContainer.Instance.Players.GetPlayerByClientId (_clientId);
     43                                Player p = PersistentContainer.Instance.Players [_cInfo.playerId];
    4244                                if (p != null) {
    4345                                        p.SetOffline ();
     
    4648                                }
    4749                                PersistentData.PersistentContainer.Instance.Save ();
     50
     51                                Mods.CallPlayerDisconnected (_cInfo, _bShutdown);
    4852                        } catch (Exception e) {
    4953                                Log.Out ("Error in AllocsLogFunctions.PlayerDisconnected: " + e);
Note: See TracChangeset for help on using the changeset viewer.