-
-
Notifications
You must be signed in to change notification settings - Fork 359
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 max residents per nation #6264
Merged
LlmDl
merged 5 commits into
TownyAdvanced:master
from
LaBoulangerie:max_residents_per_nation
Oct 28, 2022
Merged
Added max residents per nation #6264
LlmDl
merged 5 commits into
TownyAdvanced:master
from
LaBoulangerie:max_residents_per_nation
Oct 28, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LlmDl
requested changes
Oct 25, 2022
Oh yes my bad |
LlmDl
requested changes
Oct 26, 2022
LlmDl
requested changes
Oct 27, 2022
- Recheck town/nations meet requirements before finally adding the town to the nation, something that occurs after a nation invite is accepted by a town. - Replace spaces with tabs. - Add another lang string for messaging feedback, add contexts for crowdin.
LlmDl
approved these changes
Oct 28, 2022
LlmDl
added a commit
that referenced
this pull request
Oct 28, 2022
PainOchoco with PR #6263. - New Placeholders: - %townyadvanced_town_balance_unformatted% - Shows the town's raw cached bank balance. - %townyadvanced_nation_balance_unformatted% - Shows the nation's raw cached bank balance. - Added max residents per nation, courtesy of PainOchoco with PR #6264. - New Config Option: global_nation_settings.max_residents_per_nation - Default: 0 - If higher than 0, it will limit how many residents can join a nation. Does not affect existing nations that are already over the limit. - Added Nation tax percent, courtesy of PainOchoco with PR #6262. - It is possible for nations to use /n toggle taxpercent, and tax their towns a percent of the town bank, instead of a flat rate. - This prevents towns being kicked for non-payment, as the amount just shrinks as the town gets poorer. - New Config Options: - nation.default_taxes.tax - Default: 0.0 - Default amount of tax of a new nation. This must be lower than the economy.daily_taxes.max_nation_tax_amount setting. - nation.default_taxes.taxpercentage - Default: false - Default status of new nation's taxpercentage. True means that the default_tax is treated as a percentage instead of a fixed amount. - nation.default_taxes.minimumtax - Default: 0.0 - A required minimum tax amount for the default_tax, will not change any nations which already have a tax set. - Do not forget to set the default_tax to more than 0 or new nations will still begin with a tax of zero. - economy.daily_taxes.max_nation_tax_percent - Default: 25 - Maximum tax percentage allowed when taxing by percentages for nations. - economy.daily_taxes.max_nation_tax_percent_amount - Default: 10000 - The maximum amount of money that can be taken from a balance when using a percent tax, this is the default for all new nations. - New Commands: - `/nation toggle taxpercent` - Toggle percentage nationtax on or off. - `/nation set taxpercentcap` - Sets the max amount of money which can be gotten via percent nationtax, from a town. - New Permission Nodes: - `towny.command.nation.toggle.taxpercent` - Child node of towny.command.nation.toggle.*. - ` towny.command.nation.set.taxpercentcap` - Child node of towny.command.nation.set.*. - No changes to townyperms.yml required.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Adds a config option to set the maximum amount of residents for nations.
New Nodes/Commands/ConfigOptions:
Config node
Relevant Towny Issue ticket:
#2402
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.