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(); PageList = new PageList();
AdditionalEventParsers = new List<IEventParser>(); AdditionalEventParsers = new List<IEventParser>();
AdditionalRConParsers = new List<IRConParser>(); AdditionalRConParsers = new List<IRConParser>();
//OnServerEvent += OnGameEvent;
//OnServerEvent += EventApi.OnGameEvent;
TokenAuthenticator = new TokenAuthentication(); TokenAuthenticator = new TokenAuthentication();
_metaService = new MetaService(); _metaService = new MetaService();
_tokenSource = new CancellationTokenSource(); _tokenSource = new CancellationTokenSource();

View File

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