EssentialsX

EssentialsX

2M Downloads

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

commented

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

  1. Have at least 3 people online
  2. Have Player 1 give away all but 0.01 of their money
  3. Have Player 1, whose balance is now 0.01, run "/pay ** 0.01"
  4. 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.

commented

@BuildABeastWorkshop Just so we know in case someone else has the same problem, what was the issue?

commented

@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

commented

nvm, i am stupid