diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index 3113800e..03e74d1f 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -239,6 +239,8 @@ namespace TShockAPI [Description("Displays chat messages above players' heads, but will disable chat prefixes to compensate.")] public bool EnableChatAboveHeads = false; + [Description("Hide stat tracker console messages.")] public bool HideStatTrackerDebugMessages = true; + /// /// Reads a configuration file from a given path /// diff --git a/TShockAPI/StatTracker.cs b/TShockAPI/StatTracker.cs index 81df0c50..99364eae 100644 --- a/TShockAPI/StatTracker.cs +++ b/TShockAPI/StatTracker.cs @@ -86,7 +86,8 @@ namespace TShockAPI Environment.OSVersion + "&mono=" + Main.runningMono + "&port=" + Netplay.serverPort + "&plcount=" + TShock.Utils.ActivePlayers()); } - Log.ConsoleInfo("Stat Tracker: " + response); + if (!TShock.Config.HideStatTrackerDebugMessages) + Log.ConsoleInfo("Stat Tracker: " + response); } catch (Exception e) {