Skip to content

Commit

Permalink
added sendDebug() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Nov 10, 2023
1 parent f160152 commit 96d8378
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/minevalley/smart/api/Smart.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/minevalley/smart/api/SmartServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 96d8378

Please sign in to comment.