Skip to content

fix(fly): persist fly mode and restore on join#6403

Merged
JRoy merged 2 commits intoEssentialsX:2.xfrom
Touchie771:fly-persistence
Apr 5, 2026
Merged

fix(fly): persist fly mode and restore on join#6403
JRoy merged 2 commits intoEssentialsX:2.xfrom
Touchie771:fly-persistence

Conversation

@Touchie771
Copy link
Copy Markdown
Contributor

Persist /fly state in userdata and re-enable allowFlight on login so flight isn’t lost after relogging on ground (upstream #6344).

Information

This PR fixes #6344

Details

Proposed fix:

Persist the /fly state to userdata and restore allowFlight on login so flight isn’t lost after relogging while on the ground.

Environments tested:

OS: Ubuntu 24.04

Java version: 21

  • Most recent Paper version (1.XX.Y, git-Paper-BUILD)
  • Paper 1.21.8
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

Touchie771 and others added 2 commits January 4, 2026 19:07
Persist /fly state in userdata and re-enable allowFlight on login so flight isn’t lost after relogging on ground (upstream EssentialsX#6344).
Match the existing godMode revocation pattern — clear persisted flymode
and log when a player no longer has essentials.fly, preventing stale
state in userdata files.
@JRoy JRoy added this pull request to the merge queue Apr 5, 2026
Merged via the queue into EssentialsX:2.x with commit f5fc430 Apr 5, 2026
1 check passed
@Touchie771 Touchie771 deleted the fly-persistence branch April 7, 2026 13:07
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.

Exit the game standing on the ground, then your flight mode disabled.

2 participants