Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose shutdownInProgress to the API. #1485

Merged
merged 1 commit into from
Jan 26, 2025
Merged

Conversation

kyngs
Copy link
Contributor

@kyngs kyngs commented Jan 2, 2025

This is a simple PR to expose whether the proxy is currently shutting down or not.
This can be useful for example in the listener for a DisconnectEvent, which is called for every player on proxy shutdown.

If this is intentional and you have no intent of changing this, close this PR.

The ProxyShutdownEvent is not a substitute for this, as it gets called after all players have been kicked when the proxy shuts down.

@kyngs
Copy link
Contributor Author

kyngs commented Jan 26, 2025

Any hope of getting this merged?

@4drian3d 4drian3d merged commit 6995f41 into PaperMC:dev/3.0.0 Jan 26, 2025
1 check passed
pull bot pushed a commit to WiIIiam278/Velocity that referenced this pull request Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants