mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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:
parent
76beb31eaf
commit
dda2ce293c
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue