1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Add server version to master api

Add IsEvadedOffense to EFPenalty
Fix remote log reading in not Windows
This commit is contained in:
RaidMax
2018-12-16 21:16:56 -06:00
parent 4067217830
commit 9f92b64135
1676 changed files with 287228 additions and 66 deletions

View File

@ -106,16 +106,11 @@ namespace IW4MAdmin.Application.RconParsers
ping = int.Parse(regex.Groups[3].Value);
}
else
{
continue;
}
long networkId = regex.Groups[4].Value.ConvertLong();
string name = regex.Groups[5].Value.StripColors().Trim();
int ip = regex.Groups[7].Value.Split(':')[0].ConvertToIP();
int? ip = regex.Groups[7].Value.Split(':')[0].ConvertToIP();
var P = new EFClient()
var client = new EFClient()
{
CurrentAlias = new EFAlias()
{
@ -123,13 +118,19 @@ namespace IW4MAdmin.Application.RconParsers
},
NetworkId = networkId,
ClientNumber = clientNumber,
IPAddress = ip == 0 ? int.MinValue : ip,
IPAddress = ip,
Ping = ping,
Score = score,
IsBot = ip == 0,
IsBot = ip == null,
State = EFClient.ClientState.Connecting
};
StatusPlayers.Add(P);
StatusPlayers.Add(client);
// they've not fully connected yet
if (!client.IsBot && ping == 999)
{
continue;
}
}
}