fix small logging issue with loading plugins
add minigun turret to list of ignored ac weapons
This commit is contained in:
parent
6619ce714a
commit
664eb32587
@ -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");
|
||||
|
@ -15,7 +15,7 @@ namespace Stats.Config
|
||||
Game.IW4, new Dictionary<DetectionType, string[]>
|
||||
{
|
||||
{ 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.*" } }
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user