diff --git a/Application/ApplicationManager.cs b/Application/ApplicationManager.cs index 4bff1eded..7a1167d96 100644 --- a/Application/ApplicationManager.cs +++ b/Application/ApplicationManager.cs @@ -71,8 +71,6 @@ namespace IW4MAdmin.Application PageList = new PageList(); AdditionalEventParsers = new List(); AdditionalRConParsers = new List(); - //OnServerEvent += OnGameEvent; - //OnServerEvent += EventApi.OnGameEvent; TokenAuthenticator = new TokenAuthentication(); _metaService = new MetaService(); _tokenSource = new CancellationTokenSource(); diff --git a/Application/GameEventHandler.cs b/Application/GameEventHandler.cs index fdfb22c83..ba9d75217 100644 --- a/Application/GameEventHandler.cs +++ b/Application/GameEventHandler.cs @@ -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