Added support for varying log levels configurable in the server config (see log_level in default.conf)
Error logs now properly print to stderr when possible Colour-coded logs Addressed a scenario in which outgoing packet writes could get hung up Fixed interface incorrect definition message on server startup
This commit is contained in:
@@ -7,11 +7,13 @@ import core.game.node.entity.player.Player;
|
||||
import core.plugin.Plugin;
|
||||
import core.plugin.PluginManifest;
|
||||
import core.plugin.PluginType;
|
||||
import core.tools.Log;
|
||||
import core.tools.SystemLogger;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import static core.api.ContentAPIKt.log;
|
||||
import static core.api.DialUtilsKt.splitLines;
|
||||
import static core.tools.DialogueConstKt.DIALOGUE_INITIAL_OPTIONS_HANDLE;
|
||||
import static core.tools.DialogueConstKt.START_DIALOGUE;
|
||||
@@ -197,7 +199,7 @@ public abstract class DialoguePlugin implements Plugin<Player> {
|
||||
}
|
||||
|
||||
if (npc == null) {
|
||||
SystemLogger.logWarn(this.getClass(),
|
||||
log(this.getClass(), Log.WARN,
|
||||
args[0].getClass().getSimpleName() +
|
||||
"Is not assigning an NPC. Whoever did that should fix it."
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user