fix small logging issue with loading plugins

add minigun turret to list of ignored ac weapons
This commit is contained in:
RaidMax 2020-11-14 10:53:01 -06:00
parent 6619ce714a
commit 664eb32587
3 changed files with 4 additions and 4 deletions

View File

@ -183,7 +183,7 @@ namespace IW4MAdmin.Application.Misc
catch (Exception ex) catch (Exception ex)
{ {
_logger.LogError(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); nameof(OnLoadAsync), _fileName);
throw new PluginException("An unexpected error occured while initializing script plugin"); throw new PluginException("An unexpected error occured while initializing script plugin");

View File

@ -15,7 +15,7 @@ namespace Stats.Config
Game.IW4, new Dictionary<DetectionType, string[]> Game.IW4, new Dictionary<DetectionType, string[]>
{ {
{ DetectionType.Chest, new[] { "m21.+" } }, { 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.*" } } { DetectionType.Button, new[] { ".*akimbo.*" } }
} }
} }

View File

@ -385,7 +385,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
if (pl.CurrentServer == null) 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; return;
} }
@ -406,7 +406,7 @@ namespace IW4MAdmin.Plugins.Stats.Helpers
else 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());
} }
} }