mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 22:45:09 +00:00
Fix Logging
This commit is contained in:
1 parent
39e51bc8c2
commit
b60d6f8eb5
3 files changed
+10
-2
No files matched your search
@@ -3,6 +3,8 @@ package noppes.npcs.controllers.data.action;
|
||||
import noppes.npcs.LogWriter;
|
||||
import noppes.npcs.api.handler.data.IAction;
|
||||
import noppes.npcs.api.handler.data.IActionQueue;
|
||||
import noppes.npcs.config.ConfigDebug;
|
||||
import noppes.npcs.config.ConfigScript;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||
|
||||
@@ -136,7 +138,8 @@ public class ActionLogger {
|
||||
private static final String ANSI_RESET = "\u001B[0m";
|
||||
|
||||
public void println(String str) {
|
||||
System.out.printf("[%tT] %s[%s]:%s %s%s%n", new Date(), ANSI_CYAN, Thread.currentThread().getName(), ANSI_GOLD, str, ANSI_RESET);
|
||||
if(ConfigDebug.LogActionManager)
|
||||
System.out.printf("[%tT] %s[%s]:%s %s%s%n", new Date(), ANSI_CYAN, Thread.currentThread().getName(), ANSI_GOLD, str, ANSI_RESET);
|
||||
}
|
||||
|
||||
// public ActionLogger beginTick1(ActionManager manager) {
|
||||
|
||||
Reference in new issue
Block a user