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

re-enable API events

This commit is contained in:
RaidMax 2019-12-28 10:07:37 -06:00
parent 9f63eafd7f
commit 21225cba11
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