From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Abel 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 dcd2699654c8848b985309f3739b4967515e41c7..7266d29ab6bb246e6daaa643951417123d42abcb 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -2591,4 +2591,11 @@ 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 }