I have a paper spigot server running on 1.17.1, and whenever a player teleports from one dimension to another, the flight gets disabled. I've tried printing stack on PlayerToggleFlightEvent but it didn't display anything when teleporting. Additionally I've attempted to set allow-flight to true in server.properties, which resulted in no changes. When teleporting from one dimension to another, the console prints no error or warning messages, just the regular stuff. The teleport code is written by me, and no gamemodes are being changed by my code when teleporting the player, as the player is teleported normally with only player.teleport(location).