Skip to content

reliably restore flight on safelogin to prevent airborne players fall…#6590

Open
Rushikumar-06 wants to merge 1 commit into
EssentialsX:2.xfrom
Rushikumar-06:2.x
Open

reliably restore flight on safelogin to prevent airborne players fall…#6590
Rushikumar-06 wants to merge 1 commit into
EssentialsX:2.xfrom
Rushikumar-06:2.x

Conversation

@Rushikumar-06

Copy link
Copy Markdown

This PR fixes #6587

Details

Proposed fix:
When a player with essentials.fly.safelogin rejoins while airborne, EssentialsX
restores their flight synchronously inside PlayerJoinEvent. On some server
versions the client sends a flight-abilities sync shortly after join that resets
the flying state, dropping the player out of the air despite the permission.

This PR re-applies the flight state one tick later via a delayed task (mirroring
the existing world-change flight handling in the same class), so it sticks after
the client settles and the player keeps flying instead of falling. The change is
scoped entirely within the existing essentials.fly.safelogin block, so players
without the permission are unaffected.

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.

safelogin not working

1 participant