Skip to content

Adds tempflight command.#75

Merged
LlmDl merged 2 commits intomasterfrom
feat/temp_flight
Feb 14, 2024
Merged

Adds tempflight command.#75
LlmDl merged 2 commits intomasterfrom
feat/temp_flight

Conversation

@LlmDl
Copy link
Copy Markdown
Member

@LlmDl LlmDl commented Feb 14, 2024

Closes TownyAdvanced/Towny#7252

TODO:

  • add feedback messages,
  • test Placeholder,
  • test saving every 10 cycles,
  • test logging out storing remaining flight, logging in restoring it.
  - New Feature: tempflight
    - tempflight is given to players who will be able to fly for a specific amount of time, without having the `townyflight.command.tfly` permission node that is normally required for flight.
    - Temporarily flying players will use up their flight seconds while they are flying and not while they are properly grounded. 
    - Temporarily flying players will only be able to use their flight powers in areas that TownyFlight would normally allow a player to fly in.

  - New PAPI Placeholders:
     - `%townyflight_temp_flight_seconds_remaining%` - Shows a formatted flight time remaining, ie: 30 seconds, or 5 minutes 2 seconds.
     - %townyflight_temp_flight_seconds_remaining_raw% - Shows the number of seconds of flight time remaining with no formatting, ie: 30, or 302.

  - New commands:
    - /t fly tempflight [playername] 1000 - Gives a number of seconds of flight to a player.
    - /t fly tempflight [playername] [30s | 30m | 1h |  2d] - Gives an amount of seconds of flight to a player, in an easier to input format.
    - /t fly tempflight [playername] [remove] - Removes temp flight seconds from a player.

  - New permission node:
    - townyflight.command.tfly.tempflight: User is able to grant tempflight to players.
      - default: op

Closes TownyAdvanced/Towny#7252

TODO:

add feedback messages,
test Placeholder,
test saving every 10 cycles,
test logging out storing remaining flight, logging in restoring it.
@LlmDl LlmDl marked this pull request as ready for review February 14, 2024 18:22
@LlmDl LlmDl merged commit c9697b3 into master Feb 14, 2024
@LlmDl LlmDl deleted the feat/temp_flight branch February 14, 2024 18:22
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.

Suggestion: TownyFlight Temp Flight

1 participant