Skip to content

Add option for mayors to grant freeflight in their towns via new /t toggle flight command.#91

Merged
LlmDl merged 24 commits intoTownyAdvanced:masterfrom
squeaky2137:master
Nov 8, 2025
Merged

Add option for mayors to grant freeflight in their towns via new /t toggle flight command.#91
LlmDl merged 24 commits intoTownyAdvanced:masterfrom
squeaky2137:master

Conversation

@squeaky2137
Copy link
Copy Markdown
Contributor

@squeaky2137 squeaky2137 commented May 15, 2025

To use:

Mayors must be given townyflight.command.town.toggle.flight in the townyperms.yml's mayor section.


Made it so mayors of towns can toggle public flight within their town with /tfly town toggleflight
added a new permission so people with
townyflight.command.tfly.town.other
can toggle the flight of any town while just townyflight.command.tfly.town can only toggle their towns

Copy link
Copy Markdown
Member

@LlmDl LlmDl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of unneeded diffs that need to be undone before I will review this and potentially merge it into the plugin.

undo diffs made by ide
Undo difs made by ide
Undo difs made by ide
@squeaky2137
Copy link
Copy Markdown
Contributor Author

Sorry didnt realize my IDE auto made a bunch of formatting changes, have undone them

@squeaky2137 squeaky2137 requested a review from LlmDl May 15, 2025 23:15
Copy link
Copy Markdown
Member

@LlmDl LlmDl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely on board with how you've handled adding in your command before the pre-existing command is handled. It would be nicer if your command had a togglePublicFlight subcommand, or something to differentiate between mayors and admins doing the toggling of flight.

@squeaky2137
Copy link
Copy Markdown
Contributor Author

What I could do is add a sub command to the towny plugin with /t toggle flight or something similar

@squeaky2137
Copy link
Copy Markdown
Contributor Author

Also I could be wrong but just to make sure when a town has the allow flight metadata the user still needs to have permissions to use /tfly correct

Get rid of unneeded diff hopefully
# Conflicts:
#	src/main/java/com/gmail/llmdlio/townyflight/TownyFlightCommand.java
Fixing Diffs again
forgot default and fix diff
had wrong permission node
@squeaky2137
Copy link
Copy Markdown
Contributor Author

I cant get that one diff to go away at the end of plugin.yml

@squeaky2137 squeaky2137 requested a review from LlmDl May 19, 2025 22:14
squeaky2137 and others added 2 commits May 19, 2025 17:53
Accidentally had wrong class name for registering cmd
Renaming for conventional naming
…mandAddon.java

Renaming for conventional naming
permission renaming
@squeaky2137 squeaky2137 requested a review from LlmDl May 22, 2025 02:52
Copy link
Copy Markdown
Member

@LlmDl LlmDl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the diff to clear up, I'd also appreciate you confirming that you've tested this iteration yourself.

@squeaky2137
Copy link
Copy Markdown
Contributor Author

I have not fully tested it but today I will compile it and test it

@LlmDl
Copy link
Copy Markdown
Member

LlmDl commented May 22, 2025

I just went to change the other thing, and I can tell you it won't compile at all. Please get it to a point that it is ready before requesting a review next time.

@squeaky2137
Copy link
Copy Markdown
Contributor Author

I have tested it and did not come across any issues as well as everything working as intended

@squeaky2137 squeaky2137 requested a review from LlmDl May 22, 2025 14:17
@squeaky2137
Copy link
Copy Markdown
Contributor Author

squeaky2137 commented Jun 9, 2025

Any update on this?

…oggleFlightCommandAddon.java

Co-authored-by: LlmDl <LlmDlio@gmail.com>
@squeaky2137 squeaky2137 requested a review from LlmDl June 27, 2025 07:07
@squeaky2137
Copy link
Copy Markdown
Contributor Author

Compiled and tested

LlmDl added 2 commits August 10, 2025 11:28
- Move Commands into new commands package.
- Reorganize TownToggleFlightCommandAddon.
- Add tab completer to /t toggle flight.
- Fix Settings not having the new lang string added to the map.
- Fix messages showing [Towny] prefix.
@LlmDl LlmDl changed the title Added toggling flight publicly within your town Add option for mayors to grant freeflight in their towns via new /t toggle flight command. Nov 8, 2025
@LlmDl LlmDl added this to the 0.14.1 milestone Nov 8, 2025
@LlmDl LlmDl merged commit de9842c into TownyAdvanced:master Nov 8, 2025
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.

2 participants