Skip to content

feat: add on disconnect notification#8

Merged
omtoi101 merged 1 commit into
mainfrom
feature/disconnect-notification
Sep 21, 2025
Merged

feat: add on disconnect notification#8
omtoi101 merged 1 commit into
mainfrom
feature/disconnect-notification

Conversation

@omtoi101

Copy link
Copy Markdown
Owner

Adds a new feature to send a Discord notification when the client is abruptly disconnected from the server.

This is implemented by:

  • Creating a PlayerDisconnectEvent
  • Creating a ClientPlayNetworkHandlerMixin to fire the event
  • Adding a notifyOnDisconnect setting to the config
  • Handling the event in BaseFinderModule to send the Discord notification
  • Updating .gitignore to exclude Gradle build files

Adds a new feature to send a Discord notification when the client is abruptly disconnected from the server.

This is implemented by:
- Creating a `PlayerDisconnectEvent`
- Creating a `ClientPlayNetworkHandlerMixin` to fire the event
- Adding a `notifyOnDisconnect` setting to the config
- Handling the event in `BaseFinderModule` to send the Discord notification
- Updating `.gitignore` to exclude Gradle build files
@omtoi101 omtoi101 merged commit 2035438 into main Sep 21, 2025
1 of 2 checks passed
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.

1 participant