Skip to content

Fix floating warning log when the kick event is canceled#12374

Merged
lynxplay merged 3 commits into
PaperMC:mainfrom
pedroagrs:fix/floating-logging
Apr 22, 2025
Merged

Fix floating warning log when the kick event is canceled#12374
lynxplay merged 3 commits into
PaperMC:mainfrom
pedroagrs:fix/floating-logging

Conversation

@pedroagrs
Copy link
Copy Markdown
Contributor

Currently, the floating kick log is sent before the PlayerKickEvent is fired, resulting in incorrect and potentially spammy logging when the event is properly cancelled. This PR fixes the issue by moving the logging to be sent after the event logic.

@pedroagrs pedroagrs requested a review from a team as a code owner April 1, 2025 11:19
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Apr 1, 2025
Comment thread paper-server/patches/features/0032-Fix-floating-disconnect-logging.patch Outdated
@notTamion
Copy link
Copy Markdown
Contributor

I think we should additionally reset aboveGroundTickCount when the server attempts to disconnect a player to prevent the event from being spammed

@lynxplay lynxplay moved this from Awaiting review to PR Party candidate in Paper PR Queue Apr 14, 2025
@lynxplay
Copy link
Copy Markdown
Contributor

I think we should additionally reset aboveGroundTickCount when the server attempts to disconnect a player to prevent the event from being spammed

Possibly, tho in a separate PR 👍

@github-project-automation github-project-automation Bot moved this from PR Party candidate to Awaiting final testing in Paper PR Queue Apr 22, 2025
@lynxplay lynxplay merged commit df42993 into PaperMC:main Apr 22, 2025
3 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting final testing to Merged in Paper PR Queue Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants