Trophonix / TradePlus

Easy-to-use, highly configurable trading plugin for Spigot- and Bukkit-based Minecraft servers.
https://www.spigotmc.org/resources/23138/
GNU General Public License v3.0
54 stars 43 forks source link

Money are not queried correctly #91

Closed Plattio closed 1 year ago

Plattio commented 2 years ago

Hi, we have a ChestShop plugin with a buy store and the economy function enabled in the trade plugin.

Let's say we have once player A and once player B and player C. Player A wants to trade 10 diamonds with player B for 500 coins. Now player B specifies 500 coins (all his money) in the trade. However, player B also has a buy store and player C sells items there for a total of 500 coins. Now player B has no more money, but there are still 500 coins in the trade. If now player A and player B accept the trade, player B gets the diamonds, but player A does not get any money, because player B does not have enough money anymore.

Would it perhaps be possible, as soon as the coins in the trade was entered, they get deducted from the account? This would fix the problem. I think many other servers has a ChestShop plugin also.

Thank you very much!