mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
API to check if the server is sleeping
This commit is contained in:
parent
a47a008ce1
commit
7c0d854ed3
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue