Fix Logging

This commit is contained in:
Kam committed 2025-07-23 05:13:11 -04:00
1 parent 39e51bc8c2
commit b60d6f8eb5
3 files changed
+10 -2

No files matched your search

@@ -33,6 +33,8 @@ public class ConfigDebug {
public static Property ScriptLogIgnoreTypeProperty;
public static String ScriptLogIgnoreType = "TICK";
public static boolean LogActionManager = false;
public static void init(File configFile) {
config = new Configuration(configFile);
@@ -59,6 +61,9 @@ public class ConfigDebug {
"INIT,TICK,INTERACT,DIALOG,DAMAGED,KILLED,ATTACK,TARGET,COLLIDE,KILLS,DIALOG_CLOSE,TIMER");
ScriptLogIgnoreType = ScriptLogIgnoreTypeProperty.getString();
LogActionManager = config.get(LOGGING, "Log Action Manager", LogActionManager, "Log the Performance of the Action Manager").getBoolean(LogActionManager);
// Convert to Legacy
if (CustomNpcs.legacyExist) {
PlayerLogging = LegacyConfig.PlayerLogging;