Describe the bug
The /qs benefit command allows a shop owner to divide benefits (gold) between the shop owner and other players. Instead of granting benefits/gold to players, it deletes gold under certain circumstances.
To Reproduce
- Create a shop
- /qs size 64
- /qs price 1
- /qs benefit add <player A> 50%
- /qs benefit add <player B> 50%
- Buy 1g worth of items from the shop
- The gold gets deleted
Expected behavior
I would expect for the gold to be given to either player A or player B instead of getting deleted. Preferably, 1g would go to player A, then 1g would go to player B and so on.
The system works when /qs price is set to 2, since 2 is evenly divisible between player A and B.
Screenshots
No response
Additional context
Note: I understand that the gold is probably getting deleted because 1g is indivisible, but I would like to see a fix such that the gold is not deleted under any circumstances.
Describe the bug
The
/qs benefitcommand allows a shop owner to divide benefits (gold) between the shop owner and other players. Instead of granting benefits/gold to players, it deletes gold under certain circumstances.To Reproduce
Expected behavior
I would expect for the gold to be given to either player A or player B instead of getting deleted. Preferably, 1g would go to player A, then 1g would go to player B and so on.
The system works when
/qs priceis set to2, since 2 is evenly divisible between player A and B.Screenshots
No response
Additional context
Note: I understand that the gold is probably getting deleted because 1g is indivisible, but I would like to see a fix such that the gold is not deleted under any circumstances.