From 71dedf61d84f00052e1daca0c863e0633a92ba04 Mon Sep 17 00:00:00 2001 From: xSamagon <> Date: Sat, 15 Sep 2018 23:46:19 +0200 Subject: [PATCH] Fix of issue 1123 Fix of issue 1123 Didn't check the whole code, but WorldEdit should be loaded when an INSTANCE of FAWE is set. (Since this is a core class, I didn't use the Bukkit API) --- core/src/main/java/com/boydti/fawe/Fawe.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/Fawe.java b/core/src/main/java/com/boydti/fawe/Fawe.java index 7f937735..b3d638cb 100644 --- a/core/src/main/java/com/boydti/fawe/Fawe.java +++ b/core/src/main/java/com/boydti/fawe/Fawe.java @@ -201,11 +201,15 @@ public class Fawe { * @param s */ public static void debug(Object s) { - Actor actor = Request.request().getActor(); - if (actor != null && actor.isPlayer()) { - actor.print(BBC.color(BBC.PREFIX.original() + " " + s)); - return; + if (INSTANCE != null) // Fix of issue 1123 - Didn't check the whole code, but WorldEdit should be loaded when an INSTANCE of FAWE is set. (Since this is a core class, I didn't use the Bukkit API) + { + Actor actor = Request.request().getActor(); + if (actor != null && actor.isPlayer()) { + actor.print(BBC.color(BBC.PREFIX.original() + " " + s)); + return; + } } + debugPlain(BBC.PREFIX.original() + " " + s); }