Add LogDebugToConsole() ChatBot API method

Allows printing debug messages.
Debug messages are shown only if the "debugmessages" setting is enabled.

See #223
This commit is contained in:
ORelio 2017-03-14 22:04:35 +01:00
parent 76beb31eaf
commit dda2ce293c

View file

@ -511,6 +511,16 @@ namespace MinecraftClient
}
}
/// <summary>
/// Write some text in the console, but only if DebugMessages is enabled in INI file. Nothing will be sent to the server.
/// </summary>
/// <param name="text">Debug log text to write</param>
protected void LogDebugToConsole(object text)
{
if (Settings.DebugMessages)
LogToConsole(text);
}
/// <summary>
/// Disconnect from the server and restart the program
/// It will unload and reload all the bots and then reconnect to the server