SwearWord/VirtualShop — pull request #40 by azkedar (2011-10-13 16:32:55+00:00)
Title: Issue 24

Sorry about the canceled pull request spam, having issues with my branches. :-P This should be the last one for a while.

This is a bigger change than my other pull requests. :-)

This implements an option (disabled by default) "max-item-drops". This option affects InventoryManager and limits the amount of items that will be spawned in the world when trying to give players items and their inventory is full.

Buy and Cancel are both modified to understand and respond appropriately if either commands are stopped because of the item drop limit. Basically, they buy or cancel as much as possible up to the drop limit, and then leave the rest in the shops. The player is notified about the limit in either case.

The drop limit may be set to zero, which means if you don't have room in your inventory, you can't buy or cancel.

If this is not enabled (max-item-drops: -1 or if it's not found in config.yml) then the behavior should be identical to current behavior (unlimited item drops).