TownyAdvanced / TownyFlight

Flight plugin for Towny servers.
https://townyadvanced.github.io/
Other
23 stars 17 forks source link

Flight Is Disabled When Player Changes Worlds #60

Closed EcoSMP closed 8 months ago

EcoSMP commented 2 years ago

What is the issue that you see?

When players are in flight and tp to another world their flight is disabled even if they have permission to fly in that world as well. We have enabled the option to keep flight on in essentials on a world change but it did not work because they would need the essentials.fly permission which we can't give as this would allow them to fly everywhere, not just in their town. When they use /back to the world they were flying in previously they fall to their death.

What steps can be done to repeat the issue on a test server?

  1. Fly in one world with flight enabled
  2. Tp to another world with flight enabled and flight will turn off. You can turn it back on before using /back to the original world you were flying in.
  3. After you /back to the original world flight will be disabled again and you will fall to your death.

What is supposed to happen instead?

  1. Flying in the original world
  2. Tp to a different world and flight should stay enabled.
  3. /back to the original world and flight should stay enabled so you don't fall to your death.

Versions/Files

Towny Version (use '/towny v' in game) : 0.97.5.0 TownyFlight Version : 1.8.2 Link to pastebin.com with full server startup from the latest.log : Link to pastebin.com with TownyFlight config.yml : https://pastebin.com/HwiamUHz

LlmDl commented 2 years ago

I took some time to test this out and when I changed worlds I always lost flight, even with TownyFlight not installed. I think its just a normal part of MC.

MilesBHuff commented 2 years ago

This happens when going through a Nether portal as well, assuming both sides are owned by a town in which the player can fly.