From 664eb325877858c1be34aa2ed29121871491f8eb Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 14 Nov 2020 10:53:01 -0600 Subject: [PATCH] fix small logging issue with loading plugins add minigun turret to list of ignored ac weapons --- Application/Misc/ScriptPlugin.cs | 2 +- Plugins/Stats/Config/AnticheatConfiguration.cs | 2 +- Plugins/Stats/Helpers/StatManager.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Application/Misc/ScriptPlugin.cs b/Application/Misc/ScriptPlugin.cs index 4075cac3..20568a7c 100644 --- a/Application/Misc/ScriptPlugin.cs +++ b/Application/Misc/ScriptPlugin.cs @@ -183,7 +183,7 @@ namespace IW4MAdmin.Application.Misc catch (Exception ex) { _logger.LogError(ex, - "Encountered unexpected error while running {methodName} for script plugin {plugin} with event type {eventType}", + "Encountered unexpected error while running {methodName} for script plugin {plugin}", nameof(OnLoadAsync), _fileName); throw new PluginException("An unexpected error occured while initializing script plugin"); diff --git a/Plugins/Stats/Config/AnticheatConfiguration.cs b/Plugins/Stats/Config/AnticheatConfiguration.cs index a85e2922..f0a9de6f 100644 --- a/Plugins/Stats/Config/AnticheatConfiguration.cs +++ b/Plugins/Stats/Config/AnticheatConfiguration.cs @@ -15,7 +15,7 @@ namespace Stats.Config Game.IW4, new Dictionary { { DetectionType.Chest, new[] { "m21.+" } }, - { DetectionType.Recoil, new[] { "ranger.*_mp", "model1887.*_mp", ".+shotgun.*_mp" } }, + { DetectionType.Recoil, new[] { "ranger.*_mp", "model1887.*_mp", ".+shotgun.*_mp", "turret_minigun_mp" } }, { DetectionType.Button, new[] { ".*akimbo.*" } } } } diff --git a/Plugins/Stats/Helpers/StatManager.cs b/Plugins/Stats/Helpers/StatManager.cs index e6a4d933..92d8ee5e 100644 --- a/Plugins/Stats/Helpers/StatManager.cs +++ b/Plugins/Stats/Helpers/StatManager.cs @@ -385,7 +385,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers if (pl.CurrentServer == null) { - _log.LogWarning("Disconnecting client {@client} is not on a server", pl); + _log.LogWarning("Disconnecting client {client} is not on a server", pl.ToString()); return; } @@ -406,7 +406,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers else { - _log.LogWarning("Disconnecting client {@client} has not been added to stats", pl); + _log.LogWarning("Disconnecting client {client} has not been added to stats", pl.ToString()); } }