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

Connection disconnect reason #32

Merged
merged 7 commits into from
Aug 11, 2023
Merged

Connection disconnect reason #32

merged 7 commits into from
Aug 11, 2023

Conversation

zefir-git
Copy link
Member

  • Adds disconnect packets that can be used to send the client a disconnect reason
  • Adds connection states. Depending on the connection state, a different kick packet is used
  • Adds connection.disconnect optional reason (sent as a kick packet)
  • When server is shutting down, the configured kick message is sent to all connections in a valid state. By default, Server closed

@zefir-git zefir-git added the enhancement New feature or request label Aug 11, 2023
@zefir-git zefir-git self-assigned this Aug 11, 2023
@zefir-git zefir-git linked an issue Aug 11, 2023 that may be closed by this pull request
@zefir-git zefir-git changed the title Kick players Connection disconnect reason Aug 11, 2023
Copy link
Member

@kai-gitt kai-gitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all looks good to me

algtm; works on my machine

@zefir-git zefir-git merged commit 280f4af into main Aug 11, 2023
4 checks passed
@zefir-git zefir-git deleted the 27-feature-kick-players branch August 11, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Kick players
2 participants