-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Added is_trusted placeholders #6240
Added is_trusted placeholders #6240
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually has to be done lower in the getPlayerPlaceholder(Player player, String identifier)
and use the Town from the townBlock like so:
return townblock != null ? String.valueOf(townblock.getTownOrNull().hasTrustedResident(resident)) : "";
because a resident doesn't have to be a member of the town to become trusted there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only other thing that is needed is either the placeholder name should be is_town_trusted, since it's not tested against whether they're plot-trusted.
You could also add a is_plot_trusted placeholder as well.
Alright |
Should the default value be "" or "false"? |
The "" is only going to appear in the wilderness, it might make sense to just leave it blank. |
Please don't forget to add the hacktoberfest label :D |
closing #6230. - %townyadvanced_player_town_is_trusted% - returns True or False based on whether the player is in a town, and is trusted in the town. - %townyadvanced_player_plot_is_trusted% - returns True or False based on whether the player is in a town, and is trusted in the plot.
Description:
New Nodes/Commands/ConfigOptions:
Relevant Towny Issue ticket:
Closes #6230
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.