goop vault checkbalance <player> <range> [objective] [±][score][%]
May reflect the success as a scoreboard change, or just use as a Chained Command
The players whose inventory will be checked, and score changed.
Supports a few vanilla selectors.
Range of cash that will cause the command to succeed.
In the vanilla range format, [min]..[max] where both limits are optional.
For example, 10.. means 'at least 10,' while '5..16' means '5 to 16'.
Writing ".." causes it to always succeed, then.
Scoreboard objective to write the result onto
Operation to perform on the player's score if this succeeds.
For example, add ten with +10, or multiply by two with 200%
Also supports the amount keyword, to set the score to the player's balance (rounded).
This command is insanely simple, and meant to be used with the Chaining Commands feature of GooP.
Use the amount keyword instead of a score to set the player's score to their balance.
You may specify a 'fail' message for this command in the config:
VaultLowBalance: '&cYour balance is not enough, you need &6$%charge% &cto use this'
/goop vault checkbalance Anknarr 400.. oS: goop tell @s &eYou have at least $400
Tells Anknarr they at least have $400 if, well, if they at least have $400