From 96d83789a5b423d7218ea697c1b1567b4037f5bf Mon Sep 17 00:00:00 2001 From: Snabeldier <79211348+Snabeldier@users.noreply.github.com> Date: Fri, 10 Nov 2023 09:03:42 +0100 Subject: [PATCH] added sendDebug() method --- src/main/java/minevalley/smart/api/Smart.java | 4 ++++ src/main/java/minevalley/smart/api/SmartServer.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/minevalley/smart/api/Smart.java b/src/main/java/minevalley/smart/api/Smart.java index 1b11b4c..0198d0e 100644 --- a/src/main/java/minevalley/smart/api/Smart.java +++ b/src/main/java/minevalley/smart/api/Smart.java @@ -24,6 +24,10 @@ public final class Smart { @Setter private static SmartServer server; + public static void sendDebug(String message) { + server.sendDebug(message); + } + public static int runSyncTaskNow(String taskName, Runnable runnable) { return runSyncTaskLater(taskName, 0, runnable); } diff --git a/src/main/java/minevalley/smart/api/SmartServer.java b/src/main/java/minevalley/smart/api/SmartServer.java index 1ec9e37..b6ceda7 100644 --- a/src/main/java/minevalley/smart/api/SmartServer.java +++ b/src/main/java/minevalley/smart/api/SmartServer.java @@ -17,6 +17,8 @@ public interface SmartServer { + void sendDebug(String message); + int runSyncTaskLater(String taskName, long delay, Runnable runnable); int runAsyncTaskLater(String taskName, long delay, Runnable runnable);