mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
22dea6efbd
This method should be present in Paper, not just in Folia, given that the GlobalRegionScheduler is present. Additonally, add Server#isOwnedByCurrentRegion(World, int, int, int, int) for checking of a rectangle of chunks is owned by the current region.
22 lines
892 B
Diff
22 lines
892 B
Diff
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
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
|
*/
|
|
public boolean isGlobalTickThread();
|
|
// 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
|
|
}
|