- Timestamp:
- Apr 30, 2015, 1:55:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsLogFunctions.cs
r230 r233 8 8 public class AllocsLogFunctions 9 9 { 10 public static void RequestToSpawnPlayer ( int _clientId, string _name, int _chunkViewDim, PlayerProfile _playerProfile)10 public static void RequestToSpawnPlayer (ClientInfo _cInfo, int _chunkViewDim, PlayerProfile _playerProfile) 11 11 { 12 12 try { 13 ClientInfo ci = ConnectionManager.Instance.GetClient (_clientId); 14 15 Log.Out ("Player connected, clientid=" + _clientId + 16 ", entityid=" + ci.entityId + 17 ", name=" + ci.playerName + 18 ", steamid=" + ci.playerId + 19 ", ip=" + ci.ip 13 Log.Out ("Player connected" + 14 ", entityid=" + _cInfo.entityId + 15 ", name=" + _cInfo.playerName + 16 ", steamid=" + _cInfo.playerId + 17 ", ip=" + _cInfo.ip 20 18 ); 21 19 22 PersistentContainer.Instance.Players [ ci.playerId].SetOnline (ci);20 PersistentContainer.Instance.Players [_cInfo.playerId, true].SetOnline (_cInfo); 23 21 PersistentData.PersistentContainer.Instance.Save (); 24 22 } catch (Exception e) { … … 30 28 { 31 29 try { 32 Player p = PersistentContainer.Instance.Players [_cInfo.playerId ];30 Player p = PersistentContainer.Instance.Players [_cInfo.playerId, true]; 33 31 if (p != null) { 34 32 p.SetOffline ();
Note:
See TracChangeset
for help on using the changeset viewer.