-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: remember user flight intent #86
Comments
Can I see your townyflight config? |
Oh. Huh. There's an Anyways, here's the config file, as requested:
It seems there's also a |
auto_Enable_Flight: 'true' should be re-enabling their flight automatically already, but you say that it is not? If the pain comes from them moving in/out of the same town rapidly, increasing the flight_Disable_Timer time would be a good idea. |
I tested this briefly with one player and it worked correctly; but I didn't control for length of time outside of town. I will test again, this time testing both the case where they are outside of town long-enough to fully lose flight, as well as the case where they re-enter before the cooldown is over. It's possible that things lie in this difference. I will also ask them to confirm whether they have flight enabled when they log in while in a town. |
I tested again with some players. Entering/leaving town always works as intended; what doesn't is going through portals. So going into the Nether via a portal from a town to an outpost there removes flight. |
Yes I could never get this to hold on to their flight when they cross worlds. Something automatically removes it. |
A common pain point for users is that town flight, after disabling due to the user leaving a flight area, does not automatically re-enable upon the user's return to that area. This makes working along the edges of a town very tedious.
However, the simple "solution" of having flight always re-enable upon entering a flight zone can cause problems too.
Thankfully, I have an idea that should get the best of all worlds: make it so that
/tfly
also changes the player's flight intent. If the player's flight intent is "on", then anytime they enter a flight zone, their fly should be enabled. If the player's flight intent is "off", then things will work as now.Basically: In addition to changing whether fly is currently enabled,
/tfly
will also change a new boolean that determines which flight should auto-enable when possible. Here is a list of possible scenarios:/tfly
while their flight is enabled, then their flight should disable (as now) and their autoflight should also disable./tfly
while their flight is disabled and they are in a flight zone, then their flight should enable (as now) and their autoflight should also enable./tfly
while their flight is disabled and they are NOT in a flight zone, then an error should be printed and nothing should be changed.Possible additions to this base feature could be the addition of the following two subcommands for
/tfly
:/tfly auto
, which toggles autoflight on/off/tfly temp
, which toggles flight on/off without also toggling autoflightAdditionally, it might be beneficial to add a new setting to control whether autoflight is on or off by default for players with
/tfly
permission that have yet to run the/tfly
command.The text was updated successfully, but these errors were encountered: