SwearWord/VirtualShop — pull request #39 by azkedar (2011-10-13 16:29:22+00:00)
Title: Issue 24

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).