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

abstracting rcon parsing and event parsing

changed Event to GameEvent
finally fixed the stats NaN
check ip for bans
consolidated console, profile, and logout into dropdown
make sure game is iw4 before using :^ in say
fix pm not showing from name if in web console
show time left of temban on profile
This commit is contained in:
RaidMax
2018-04-13 01:32:30 -05:00
parent 15372d0726
commit b9c11d48c2
34 changed files with 519 additions and 272 deletions

View File

@ -13,7 +13,7 @@ namespace IW4MAdmin.Plugins.Stats.Commands
{
public ResetStats() : base("resetstats", "reset your stats to factory-new", "rs", Player.Permission.User, false) { }
public override async Task ExecuteAsync(Event E)
public override async Task ExecuteAsync(GameEvent E)
{
if (E.Origin.ClientNumber >= 0)
{

View File

@ -14,7 +14,7 @@ namespace IW4MAdmin.Plugins.Stats.Commands
{
public TopStats() : base("topstats", "view the top 5 players on this server", "ts", Player.Permission.User, false) { }
public override async Task ExecuteAsync(Event E)
public override async Task ExecuteAsync(GameEvent E)
{
var statsSvc = new GenericRepository<EFClientStatistics>();
int serverId = E.Owner.GetHashCode();

View File

@ -22,7 +22,7 @@ namespace IW4MAdmin.Plugins.Stats.Commands
})
{ }
public override async Task ExecuteAsync(Event E)
public override async Task ExecuteAsync(GameEvent E)
{
if (E.Target?.ClientNumber < 0)
{