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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user