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

update stats

change server id
fIx change log server complaining when empty read
This commit is contained in:
RaidMax
2018-11-27 18:31:48 -06:00
parent 2ca7083011
commit 08d497153a
44 changed files with 966 additions and 157 deletions

View File

@ -30,32 +30,32 @@ namespace IW4MAdmin
{
}
public override int GetHashCode()
{
// hack: my laziness
if ($"{IP}:{Port.ToString()}" == "66.150.121.184:28965")
{
return 886229536;
}
//public override int EndPoint
//{
// // hack: my laziness
// if ($"{IP}:{Port.ToString()}" == "66.150.121.184:28965")
// {
// return 886229536;
// }
if ($"{IP}:{Port.ToString()}" == "66.150.121.184:28960")
{
return 1645744423;
}
// if ($"{IP}:{Port.ToString()}" == "66.150.121.184:28960")
// {
// return 1645744423;
// }
if ($"{IP}:{Port.ToString()}" == "66.150.121.184:28970")
{
return 1645809959;
}
// if ($"{IP}:{Port.ToString()}" == "66.150.121.184:28970")
// {
// return 1645809959;
// }
if (Id == 0)
{
Id = HashCode.Combine(IP, Port);
Id = Id < 0 ? Math.Abs(Id) : Id;
}
// if (Id == 0)
// {
// Id = HashCode.Combine(IP, Port);
// Id = Id < 0 ? Math.Abs(Id) : Id;
// }
return Id;
}
// return Id;
//}
override public async Task OnClientConnected(EFClient clientFromLog)
{
@ -763,7 +763,7 @@ namespace IW4MAdmin
this.MaxClients = maxplayers;
this.FSGame = game;
this.Gametype = gametype;
this.IP = ip.Value;
this.IP = ip.Value == "localhost" ? ServerConfig.IPAddress : ip.Value;
if (logsync.Value == 0 || logfile.Value == string.Empty)
{