BrendonButler / Shops

Shops plugin for Bukkit/Spigot 1.20
https://www.sparkzz.net/projects?id=shops
GNU General Public License v2.0
1 stars 0 forks source link

New command to add or remove funds in a shop #7

Closed BrendonButler closed 1 year ago

BrendonButler commented 1 year ago

/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).

BrendonButler commented 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:

Examples: