diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java index c54df19..0b75601 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java @@ -60,6 +60,8 @@ public class EvalPlugin { socket.on(BRIDGE_PREFIX + function.name, args -> { final EvalFunction.Output output = function.execute(args); + if (output == null) return; + socket.emit("functionOutput:" + function.name, output.message, output.parseJSON); }); }