Using /pay ** <x> where X is the player's current balance causes that player's balance to go into the negatives
BuildABeastWorkshop opened this issue ยท 3 comments
Type of bug
Exploit
/ess version
output
[21:09:26 INFO]: Unknown command. (/help for help)
(this is weird behavior, but EssentialsX is in fact running on my server, lol)
Server startup log
https://paste.gg/p/anonymous/103ae2b08e14475bbb06f46a75401569
EssentialsX config files
https://paste.gg/p/anonymous/103ae2b08e14475bbb06f46a75401569
Error log (if applicable)
No response
Bug description
When a player runs /pay ** with an amount equal to their current balance, the system sets their balance to a negative number. After this is achieved, the player can give away money infinitely.
Steps to reproduce
- Have at least 3 people online
- Have Player 1 give away all but 0.01 of their money
- Have Player 1, whose balance is now 0.01, run "/pay ** 0.01"
- Player 1 now has a negative balance and can give away infinite money using /pay.
Expected behaviour
Players using /pay ** shouldn't be allowed to give away more than they have in their balance.
Actual behaviour
Players can give away infinite money and break the economy.
@BuildABeastWorkshop Just so we know in case someone else has the same problem, what was the issue?
@BuildABeastWorkshop Just so we know in case someone else has the same problem, what was the issue?
I forgot that I configured Essentials to allow people to go into debt. facepalm