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 827e69f70a
commit 4caa4655e2
34 changed files with 519 additions and 272 deletions

View File

@ -29,8 +29,6 @@ namespace WebfrontCore.Controllers
if (HttpContext.Connection.RemoteIpAddress.ToString() != "127.0.0.1")
{
try
{
User.ClientId = Convert.ToInt32(base.User.Claims.First(c => c.Type == ClaimTypes.Sid).Value);

View File

@ -34,10 +34,16 @@ namespace WebfrontCore.Controllers
{
ClientId = User.ClientId,
Level = User.Level,
CurrentServer = server
CurrentServer = server,
CurrentAlias = new Alias() { Name = User.Name }
};
var remoteEvent = new GameEvent()
{
Type = GameEvent.EventType.Say,
Data = command,
Origin = client,
Owner = server
};
var remoteEvent = new Event(Event.GType.Say, command, client, null, server);
await server.ExecuteEvent(remoteEvent);