Closed BrendonButler closed 1 year ago
Pretty easy additions, tested functionality of the commands and tried to think of any edge cases. Appears to work flawlessly.
Command Formats:
/shop deposit <amount>
/shop withdraw [<amount>|all]
Examples:
/shop deposit 234.52
(deposits a balance of 234.52/shop withdraw 12
(withdraws a balance of 12/shop withdraw all
(withdraws the total balance of the shop)
/shop deposit <amount>
This will withdraw money from the player's economy account and deposit it into the shop's account. Even if the shop has infinite funds, finances should still be able to be stored./shop withdraw <amount>
This will withdraw money from the shop's account and deposit it in the player's economy account. Even if the shop has infinite funds, finances should still be able to be withdrawn. However, if the shop's balance drops to 0, they will no longer be able to withdraw anymore value (this will prevent the shop owner from enabling infinite funds and withdrawing unlimited money, but it will also prevent the shop owner from losing any current balance when enabling infinite funds).