- Timestamp:
- Nov 16, 2018, 10:38:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/Commands/ListKnownPlayers.cs
r326 r332 62 62 } else { 63 63 int num = 0; 64 foreach ( string sid in PersistentContainer.Instance.Players.SteamIDs) {65 Player p = PersistentContainer.Instance.Players [sid, false];64 foreach (KeyValuePair<string, Player> kvp in PersistentContainer.Instance.Players.Dict) { 65 Player p = kvp.Value; 66 66 67 67 if ( 68 68 (!onlineOnly || p.IsOnline) 69 && (!notBannedOnly || !admTools.IsBanned ( sid))69 && (!notBannedOnly || !admTools.IsBanned (kvp.Key)) 70 70 && (nameFilter.Length == 0 || p.Name.ContainsCaseInsensitive (nameFilter)) 71 71 ) { 72 72 SdtdConsole.Instance.Output (string.Format ( 73 73 "{0}. {1}, id={2}, steamid={3}, online={4}, ip={5}, playtime={6} m, seen={7}", 74 ++num, p.Name, p.EntityID, sid, p.IsOnline, p.IP,74 ++num, p.Name, p.EntityID, kvp.Key, p.IsOnline, p.IP, 75 75 p.TotalPlayTime / 60, 76 76 p.LastOnline.ToString ("yyyy-MM-dd HH:mm"))
Note:
See TracChangeset
for help on using the changeset viewer.