API to check if the server is sleeping

This commit is contained in:
Abel 2024-11-10 16:32:51 +01:00
parent a47a008ce1
commit 7c0d854ed3

View file

@ -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
}