diff --git a/Application/Misc/ScriptPlugin.cs b/Application/Misc/ScriptPlugin.cs index 4075cac34..20568a7c9 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 a85e29221..f0a9de6f9 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 e6a4d9334..92d8ee5e9 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()); } }