Added an option to hide stat tracker debug messages
This commit is contained in:
parent
7f5ee044c9
commit
7eab1b55d3
2 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// Reads a configuration file from a given path
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue