diff --git a/src/RustServerMetrics/MetricsLogger.cs b/src/RustServerMetrics/MetricsLogger.cs index 06faadb..9aa09e5 100644 --- a/src/RustServerMetrics/MetricsLogger.cs +++ b/src/RustServerMetrics/MetricsLogger.cs @@ -16,6 +16,7 @@ namespace RustServerMetrics public class MetricsLogger : SingletonComponent { const string CONFIGURATION_PATH = "HarmonyMods_Data/ServerMetrics/Configuration.json"; + readonly static char[] PLUGIN_NAME_TRIMSTART = new char[] { '_' }; readonly StringBuilder _stringBuilder = new(); readonly Dictionary _playerStatsActions = new(); readonly Dictionary _perfReportDelayCounter = new(); @@ -186,7 +187,7 @@ internal void OnOxidePluginMetrics(Dictionary metrics) UploadPacket("oxide_plugins", metric, (builder, report) => { builder.Append(",plugin=\""); - builder.Append(report.Key.Replace("\"", "\\\"")); + builder.Append(report.Key.TrimStart(PLUGIN_NAME_TRIMSTART).Replace("\"", "\\\"")); builder.Append("\" hookTime="); builder.Append(report.Value); });