re-enable API events

This commit is contained in:
RaidMax 2019-12-28 10:07:37 -06:00
parent 2b26b9a707
commit 4d3f7da48e
2 changed files with 1 additions and 2 deletions

View File

@ -71,8 +71,6 @@ namespace IW4MAdmin.Application
PageList = new PageList();
AdditionalEventParsers = new List<IEventParser>();
AdditionalRConParsers = new List<IRConParser>();
//OnServerEvent += OnGameEvent;
//OnServerEvent += EventApi.OnGameEvent;
TokenAuthenticator = new TokenAuthentication();
_metaService = new MetaService();
_tokenSource = new CancellationTokenSource();

View File

@ -34,6 +34,7 @@ namespace IW4MAdmin.Application
{
var start = DateTime.Now;
await Manager.ExecuteEvent(args.Event);
EventApi.OnGameEvent(sender, args);
#if DEBUG
_profiler.Profile(start, DateTime.Now, args.Event);
#endif