Skip to content
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

Add sanctioned towns hover component to nation status screen #7207

Merged
merged 3 commits into from
Jan 27, 2024

Conversation

jwkerr
Copy link
Contributor

@jwkerr jwkerr commented Jan 25, 2024

Description:

This adds a "[Sanctioned Towns]" section to the end of the nation status screen, it acts just like the enemies, allies, towns etc. hover components, clicking runs the list command (pictured below)

image


New Nodes/Commands/ConfigOptions:

N/A


Relevant Towny Issue ticket:

N/A


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.

@jwkerr
Copy link
Contributor Author

jwkerr commented Jan 25, 2024

should be all good now i think, i added the nation name to the clickevent

@@ -507,6 +507,18 @@ public static StatusScreen getStatus(Nation nation, CommandSender sender) {
.append(Component.newline())
.append(translator.component("status_hover_click_for_more"))),
ClickEvent.runCommand("/towny:nation enemylist " + nation.getName()));

// Sanctioned Towns [3]: Prague, Berlin, Vienna
Copy link
Member

Choose a reason for hiding this comment

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

This comment should look like so: // [Sanctioned Towns] + hover (Yes I know most of the other comments are incorrect.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@LlmDl LlmDl added this to the 0.100.2.0 milestone Jan 27, 2024
@LlmDl LlmDl merged commit ccb98a6 into TownyAdvanced:master Jan 27, 2024
3 checks passed
LlmDl added a commit that referenced this pull request Jan 27, 2024
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