2024-11-22 12:22:20 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Abel <abelvanhulst@gmail.com>
|
|
|
|
Date: Sun, 10 Nov 2024 16:32:51 +0100
|
|
|
|
Subject: [PATCH] API to check if the server is sleeping
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
|
2024-12-03 17:58:41 +01:00
|
|
|
index e187bb03006e84f08ca09c33ea182a76ae2d9d39..0731b4dd74c9e203f966c03dd2cb3a3bd4d9df69 100644
|
2024-11-22 12:22:20 +01:00
|
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
2024-11-25 19:43:28 +01:00
|
|
|
@@ -2591,4 +2591,11 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
2024-11-22 12:22:20 +01:00
|
|
|
*/
|
2024-11-25 19:43:28 +01:00
|
|
|
public boolean isGlobalTickThread();
|
2024-11-22 12:22:20 +01:00
|
|
|
// Paper end - Folia region threading API
|
|
|
|
+
|
|
|
|
+ // Paper start - API to check if the server is sleeping
|
|
|
|
+ /**
|
|
|
|
+ * Returns whether the server is sleeping/paused.
|
|
|
|
+ */
|
|
|
|
+ boolean isPaused();
|
|
|
|
+ // Paper end - API to check if the server is sleeping
|
|
|
|
}
|