From dbe965e901131d3aa396514b8a437a1e665d38b6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 24 Jun 2016 15:41:27 +1000 Subject: [PATCH] init script engine on get --- .../java/com/intellectualcrafters/plot/commands/DebugExec.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugExec.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugExec.java index c5be5cb29..8ddd4a64d 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugExec.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/DebugExec.java @@ -84,6 +84,9 @@ public class DebugExec extends SubCommand { } public ScriptEngine getEngine() { + if (this.engine == null) { + init(); + } return this.engine; }