Expose shutdownInProgress to the API. (#1485)

Co-authored-by: kyngs <kyngs@users.noreply.github.com>
This commit is contained in:
kyngs
2025-01-26 13:49:35 +01:00
committed by GitHub
parent 371e686076
commit 6995f415d3
2 changed files with 12 additions and 0 deletions

View File

@@ -41,6 +41,13 @@ public interface ProxyServer extends Audience {
*/
void shutdown();
/**
* Returns whether the proxy is currently shutting down.
*
* @return {@code true} if the proxy is shutting down, {@code false} otherwise
*/
boolean isShuttingDown();
/**
* Closes all listening endpoints for this server.
* This includes the main minecraft listener and query channel.