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

Send Discord player messages asynchronously #13

Merged
merged 2 commits into from
Aug 5, 2023
Merged

Conversation

mrghosti3
Copy link
Owner

Notes in the commit.

Closes #12

Makes CustomEventListener send discord notifications asynchronously.
Previously it would send them on the same thread as the event is called
on, which counts as main thread due to how minecraft is designed. That
behaviour in some rare cases could cause a small lag on the server as
it holds back the main thread. With this commit that should no longer be
the case and should be simpler solution than implementing
multi-threading.
- reformatted code style with `clang-format`;
- removed older repository for peperweight-userdev.
@mrghosti3 mrghosti3 self-assigned this Aug 5, 2023
@mrghosti3 mrghosti3 linked an issue Aug 5, 2023 that may be closed by this pull request
@mrghosti3 mrghosti3 merged commit 445cbd9 into main Aug 5, 2023
@mrghosti3 mrghosti3 added this to the v0.3.1 milestone Aug 5, 2023
@mrghosti3 mrghosti3 deleted the 12-async-discord branch August 5, 2023 17:14
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.

Make Discord Webhook messaging async
1 participant