Refactor for new configuration
This commit is contained in:
parent
a03647ce38
commit
9423febd0a
26 changed files with 351 additions and 433 deletions
|
|
@ -178,7 +178,7 @@ namespace TShockAPI
|
|||
/// <param name="message">The message to be written.</param>
|
||||
public void ConsoleDebug(string message)
|
||||
{
|
||||
if (TShock.Config.DebugLogs)
|
||||
if (TShock.Config.Settings.DebugLogs)
|
||||
{
|
||||
Console.WriteLine("Debug: " + message);
|
||||
Write(message, TraceLevel.Verbose);
|
||||
|
|
@ -201,7 +201,7 @@ namespace TShockAPI
|
|||
/// <param name="message">The message to be written.</param>
|
||||
public void Debug(string message)
|
||||
{
|
||||
if (TShock.Config.DebugLogs)
|
||||
if (TShock.Config.Settings.DebugLogs)
|
||||
Write(message, TraceLevel.Verbose);
|
||||
}
|
||||
|
||||
|
|
@ -212,7 +212,7 @@ namespace TShockAPI
|
|||
/// <param name="args">The format arguments.</param>
|
||||
public void Debug(string format, params object[] args)
|
||||
{
|
||||
if (TShock.Config.DebugLogs)
|
||||
if (TShock.Config.Settings.DebugLogs)
|
||||
Debug(string.Format(format, args));
|
||||
}
|
||||
|
||||
|
|
@ -259,4 +259,4 @@ namespace TShockAPI
|
|||
_logWriter.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue