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

Suggestion: Event fired when determining town, nation and resident prefixes #6995

Closed
galacticwarrior9 opened this issue Sep 21, 2023 · 3 comments
Assignees
Milestone

Comments

@galacticwarrior9
Copy link
Contributor

Please explain your feature request to the best of your abilities:

Useful if you want these to be dynamic, e.g. determined by the TownyCultures culture of a town, or the most popular culture of a nation, etc.

@LlmDl
Copy link
Member

LlmDl commented Sep 21, 2023

Town, Nation and Resident prefixes are all completely separate and determined differently.

Maybe its better to just make a Placeholder with what you actually want, ie: A TownyCulture PAPIPlaceholder?

@galacticwarrior9
Copy link
Contributor Author

I apologise, I meant to type "events fired", not "event fired".

What I had in mind was replacing the prefix shown in /t and /n (for example), which a PAPI placeholder cannot do.

@LlmDl
Copy link
Member

LlmDl commented Sep 21, 2023

Ah. That is doable.

@LlmDl LlmDl self-assigned this Sep 21, 2023
@LlmDl LlmDl added this to the 0.99.6.0 milestone Sep 21, 2023
@LlmDl LlmDl closed this as completed in 725ca5e Sep 21, 2023
jwkerr pushed a commit to jwkerr/Towny that referenced this issue Oct 9, 2023
    - Thrown when a Resident, Town or Nation is returning a
getFormattedName() value.
    - This is used to alter the prefix or postfix that flanks a
TownyObject name, usually a title, surname, townlevel/nationlevel
prefix/postfix.
    - Closes TownyAdvanced#6995.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants