mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-27 10:41:27 +01:00
API to check if the server is sleeping
This commit is contained in:
parent
a47a008ce1
commit
7c0d854ed3
@ -2591,4 +2591,11 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
|||||||
*/
|
*/
|
||||||
public boolean isGlobalTickThread();
|
public boolean isGlobalTickThread();
|
||||||
// Paper end - Folia region threading API
|
// 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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user