TownyAdvanced / TownyProvinces

An add-on plugin for Towny, which makes claiming more organized, reducing staff workload and server toxicity.
20 stars 10 forks source link

Town Costs on PL3X Map Aren't Reflected #101

Closed Isaiah-labs closed 11 months ago

Isaiah-labs commented 1 year ago

Hello! I mentioned this in the discord, but I wanted to see if this was an actual bug.

Here is a pastebin of my province config and Region setup, which is below it. https://pastebin.com/xsyD5xtG

Basically, on my map http://map.lemoncube.net, the provinces are showing around 15 emeralds and 1-2 emeralds for upkeep. When I create a town, it asks me to pay the cost that's set up in the Towny config, and upkeep isn't calculated by provinces.

Am I missing a setting? Do I have to turn off Towny economy? If you need any other information from me, I'll get it to you as soon as I can.

Thanks!

LlmDl commented 11 months ago

I need to see what you have in your \data\provinces\ folder.

LlmDl commented 11 months ago

As far as I can see you're using values called:

new_town_cost_per_chunk: 1 upkeep_town_cost_per_chunk: 0.2

but the plugin only recognizes

new_town_cost upkeep_town_cost

Which doesn't match up with what is created in the sample files.

Looking at the code, the plugin never attempts to multiply the new town cost by the number of chunks, and is treating it like a flat-fee addon to the towny new-town-price.