Skip to content

Conversation

@Abasing
Copy link

@Abasing Abasing commented Aug 14, 2025

  • Added TeleportListener class to handle PlayerTeleportEvent.
  • Pauses TempFly flight time during teleport to prevent unintended time drain.
  • Resumes flight after a short delay to ensure teleport completes before tracking resumes.
  • Registered the listener in TempFly.onEnable().

Fixes #58 — This resolves the bug where players arrive flying after using /home, /warp, or /spawn in TempFly-enabled worlds, causing flight time to drain unintentionally.

Added TeleportListener.java to reset flying state after player teleports into a TempFly-enabled world.
Prevents players from hovering and consuming TempFly time immediately after teleport.
Registered the new listener in TempFly.java.
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.

tempfly after teleport

1 participant