Skip to content

Fix elytra break detection webhook#5

Merged
omtoi101 merged 2 commits into
mainfrom
fix-elytra-break-detection-webhook
Sep 19, 2025
Merged

Fix elytra break detection webhook#5
omtoi101 merged 2 commits into
mainfrom
fix-elytra-break-detection-webhook

Conversation

@omtoi101

Copy link
Copy Markdown
Owner

No description provided.

The elytra check in BaseFinderModule was only checking if the chest slot was empty. This caused the webhook notification to not fire when an elytra would break mid-flight.

This change modifies the check to also consider an elytra as "out" if it is damaged to the point of being broken. The Discord notification and disconnect messages have been updated to be more descriptive.
The elytra break detection was too aggressive and would disconnect the player immediately. This change introduces a 2-second leeway to allow for auto-equip plugins to replace a broken elytra before disconnecting. A tick counter has been added to track the time since an elytra has been unusable. The disconnect logic is now only triggered if the counter exceeds 40 ticks.
@omtoi101 omtoi101 merged commit aa2c41f into main Sep 19, 2025
0 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