Added a log file for alerts as requested in #1179

This commit is contained in:
Milutinke 2022-09-26 00:56:22 +02:00
parent 4d276ced71
commit 3366b15937
3 changed files with 16 additions and 0 deletions

View file

@ -153,8 +153,10 @@ namespace MinecraftClient
//Alerts Settings
public static bool Alerts_Enabled = false;
public static bool Alerts_Beep_Enabled = true;
public static bool Alerts_File_Logging = false;
public static string Alerts_MatchesFile = "alerts.txt";
public static string Alerts_ExcludesFile = "alerts-exclude.txt";
public static string Alerts_LogFile = "alerts-log.txt";
//ChatLog Settings
public static bool ChatLog_Enabled = false;
@ -575,6 +577,8 @@ namespace MinecraftClient
case "alertsfile": Alerts_MatchesFile = argValue; return true;
case "excludesfile": Alerts_ExcludesFile = argValue; return true;
case "beeponalert": Alerts_Beep_Enabled = str2bool(argValue); return true;
case "logtofile": Alerts_File_Logging = str2bool(argValue); return true;
case "logfile": Alerts_LogFile = argValue; return true;
}
break;