Ignore:
Timestamp:
Jul 17, 2014, 1:46:42 AM (10 years ago)
Author:
alloc
Message:

fixer

File:
1 edited

Legend:

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

    r75 r76  
    11using System;
     2using System.Collections.Generic;
    23
    34public class AllocsRequestToSpawnPlayer
     
    67        {
    78                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);
    923        }
    1024}
Note: See TracChangeset for help on using the changeset viewer.