MrNaikito / towny

Automatically exported from code.google.com/p/towny
0 stars 1 forks source link

/town buy bonus {amount} allows purchases past the maximum. #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Player with 16/48 blocks purchased buys 32 more.
2. Town is given 48 townblocks instead of 32, putting the town at Bought: 64/48

What is the expected output? What do you see instead?
The command shouldn't have given 16 extra townblocks from nowhere and there 
should be a check to make certain a town is not going about the maximum # of 
blocks available set in the config.

What is your towny build?
0.76

What is your bukkit build?
1060

What operating system?
MineOS

Please use pastebin.com to attach links to relevant files which could
include your towny config.yml, your permissions file, broken town files
that prevent towny from loading on startup.

Blocks cost 50 and the cap is set at 48 in the config.yml.

Original issue reported on code.google.com by Hurfapotamus@gmail.com on 5 Sep 2011 at 5:48

GoogleCodeExporter commented 9 years ago
    - Fixed error with '/town buy' granting the wrong number of blocks.

Fixed in Dev

Original comment by Elg...@palmergames.com on 5 Sep 2011 at 10:09