mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 06:32:17 -07:00
Expose MinecraftServer#isRunning
This allows for plugins to detect if the server is actually turning off in onDisable rather than just plugins reloading.
This commit is contained in:
@@ -2575,6 +2575,15 @@ public final class Bukkit {
|
||||
public static int getCurrentTick() {
|
||||
return server.getCurrentTick();
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the server is in the process of being shutdown.
|
||||
*
|
||||
* @return true if server is in the process of being shutdown
|
||||
*/
|
||||
public static boolean isStopping() {
|
||||
return server.isStopping();
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@NotNull
|
||||
|
Reference in New Issue
Block a user