Closed Svish closed 2 years ago
Great catches. The code for BiTrades get really confusing since the cost becomes the product and vice versa. Going to number the issues then respond to each.
Now for responses to each.
- It shows up when both cost and product has been assigned, but one of the items are missing.
Okay, but how do you interact with the sign for it to appear, because left/right click should show the messages from 1
- It shows up when both cost and product has been assigned, but one of the items are missing.
Okay, but how do you interact with the sign for it to appear, because left/right click should show the messages from 1
Never mind I found it.
If I remove all the wool (but still have diamonds in the chest, and both diamonds and wool in my inventory), then I get the message "This TradeShop is currently missing items to complete the trade!"
regardless of whether I right- or left-click.
All 3 fixed in e030cec
Dev update should be out in a couple minutes
Expected behavior
Tried to set-up some
[BiTrade]
, and find the error messages very confusing."You have traded your 4 diamond for 64 pink_wool with Svish"
"You do not have 4 diamond!" (should be "64 pink_wool", no?)
"You have traded your 4 diamond for 64 pink_wool with Svish"
"You do not have 4 diamond!"
Also, when the shop is out of stock with something, it would be good if it said what it was out of stock of. Currently it shows this message, regardless of which trade you're trying to do:
"This TradeShop is currently missing items to complete the trade!"
It's also a bit confusing that the shop itself says
<Out Of Stock>
when there's no more product, even though the cost-item is still in stock so you can do the reverse trade.Observed/Actual behavior
Steps/models to reproduce
Create a
[BiTrade]
and trade with it, both directions, with and without needed items in chest and/or inventory.Plugin list
TradeShop version and Minecraft version (CraftBukkit/Spigot/Paper/...)
Agreements
Other
No response