Changeset 76 for binary-improvements/7dtd-server-fixes/src/TelnetCommands
- Timestamp:
- Jul 17, 2014, 1:46:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/TelnetCommands/ListPlayersExtended.cs
r75 r76 22 22 foreach (KeyValuePair<int, EntityPlayer> current in w.playerEntities.dict) 23 23 { 24 int clientId = -1; 25 Dictionary<int,int> d = this.m_Console.gameManager.connectionManager.mapClientToEntity; 26 foreach (KeyValuePair<int, int> mapping in d) { 27 if (mapping.Value == current.Value.fd0087) { 28 clientId = mapping.Key; 29 } 30 } 31 string ip = string.Empty; 32 if (clientId >= 0) { 33 ip = this.m_Console.gameManager.connectionManager.connectedClients [clientId].networkPlayer.ipAddress; 34 } 24 35 m_Console.md000a (string.Concat (new object[] 25 36 { … … 46 57 ", score=", 47 58 current.Value.Score, 48 ", ", 49 SingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (current.Value.EntityName) 59 ", steamid=", 60 SingletonMonoBehaviour<Authenticator>.Instance.GetPlayerId (current.Value.EntityName), 61 ", ip=", 62 ip 50 63 })); 51 64 }
Note:
See TracChangeset
for help on using the changeset viewer.