SwearWord/VirtualShop — Issue #45: Buying 1 watch buys stack
Author: AevumDecessus
Created: 2011-10-18 23:26:25+00:00
State: open

I have a user on my server who put 1 watch for sale for 1,000 dollars. I decided to buy it, using /buy 1 watch. Instead of the expected output (Managed to buy 1 watch for 1,000 dollars), I received the output of [Shop] Managed to buy 64 watch for 64,000 dollars. I received the single watch that was for sale, but when I checked my balance, and the transactions tables in MYSQL, I found that it had recorded the 64 watches for 64,000, and had deducted that amount from my account, and credited it to the corresponding user's account, putting my balance in the negative.