- Timestamp:
- Jul 17, 2014, 1:46:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsRequestToSpawnPlayer.cs
r75 r76 1 1 using System; 2 using System.Collections.Generic; 2 3 3 4 public class AllocsRequestToSpawnPlayer … … 6 7 { 7 8 string ip = manager.connectionManager.connectedClients [_clientId].networkPlayer.ipAddress; 8 Log.Out ("Player connected, clientid=" + _clientId + ", ip=" + ip); 9 string name = string.Empty; 10 int entityId = -1; 11 Dictionary<int,int> d = manager.connectionManager.mapClientToEntity; 12 if (d.ContainsKey (_clientId)) { 13 entityId = d [_clientId]; 14 World w = manager.World; 15 name = w.playerEntities.dict [entityId].EntityName; 16 } 17 18 Log.Out ("Player connected, clientid=" + _clientId + 19 ", entityid=" + entityId + 20 ", name=" + name + 21 ", steamid=" + SingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (name) + 22 ", ip=" + ip); 9 23 } 10 24 }
Note:
See TracChangeset
for help on using the changeset viewer.