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

fix alias command sending message to origin instead of target

(hopefully) fix an issue with banned players causing exception if they create events before they are kicked out
fix issues with sometimes wrong error message for timeout
show most recent IP address at top of alias list
optimization to some sql queries
This commit is contained in:
RaidMax
2019-11-15 14:50:20 -06:00
parent ba35177ded
commit edb00523a1
31 changed files with 1553 additions and 279 deletions

View File

@ -6,6 +6,7 @@ using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace IW4MAdmin.Plugins.Stats.Helpers
{
@ -16,6 +17,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
public EFServer Server { get; private set; }
private readonly Server _server;
public bool IsTeamBased { get; set; }
public SemaphoreSlim OnSaving { get; private set; }
public ServerStats(EFServer sv, EFServerStatistics st, Server server)
{
@ -23,6 +25,12 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
ServerStatistics = st;
Server = sv;
_server = server;
OnSaving = new SemaphoreSlim(1, 1);
}
~ServerStats()
{
OnSaving.Dispose();
}
public int TeamCount(IW4Info.Team teamName)