1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-09 23:00:57 -05:00

convert GetPort to auto property

don't force disconnect player if someone is "in" their spot
increase gamelogserver max time before purge
This commit is contained in:
RaidMax
2019-05-31 10:17:01 -05:00
parent 39d31dbe3c
commit 3ffb163caf
12 changed files with 48 additions and 53 deletions

View File

@ -216,7 +216,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
{
server = new EFServer()
{
Port = sv.GetPort(),
Port = sv.Port,
EndPoint = sv.ToString(),
ServerId = serverId,
GameName = sv.GameName
@ -1230,12 +1230,12 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
public static async Task<long> GetIdForServer(Server server)
{
if ($"{server.IP}:{server.GetPort().ToString()}" == "66.150.121.184:28965")
if ($"{server.IP}:{server.Port.ToString()}" == "66.150.121.184:28965")
{
return 886229536;
}
long id = HashCode.Combine(server.IP, server.GetPort());
long id = HashCode.Combine(server.IP, server.Port);
id = id < 0 ? Math.Abs(id) : id;
long? serverId;