Renting payment issue
melinstagibson opened this issue ยท 3 comments
I have a server where people can rent a certain amount of shopkeepers in a marketplace.
The problem is that if someone reached his shopkeeper limit as assigned via permissions the rentable shopkeepers will still take the payment and then tell the user he cant buy more but the payment will still be lost.
Was able to reproduce: This occurs if the player has more items than would be required: The stack of items gets reduced then. Caused by this line of code: https://github.com/Shopkeepers/Shopkeepers/blob/master/src/main/java/com/nisovin/shopkeepers/shoptypes/PlayerShopkeeper.java#L295
I will fix this in the next update.