SHOW:
|
|
- or go back to the newest paste.
| 1 | command /bal [<player>]: | |
| 2 | aliases: /balance | |
| 3 | usage: ./bal or ./balance. You can do ./bal (player) | |
| 4 | trigger: | |
| 5 | if {balance::%player%} is not set:
| |
| 6 | set {balance::%player%} to 0
| |
| 7 | if arg 1 is not set: | |
| 8 | message "&a&lJailed&2&lX &8» &aYour Current Balance Is &2%{balance::%player%}% &aCoin(s)."
| |
| 9 | else: | |
| 10 | message "&a&lJailed&2&lX &8» &a%arg 1%'s Current Balance Is &2%{balance::%arg 1%}% &aCoin(s)."
| |
| 11 | command /coins <text> [<player>] [<integer>]: | |
| 12 | usage: /coins add, and remove | |
| 13 | permission: JailedX.CoinS | |
| 14 | permission message: &a&lJailed&2&lX &8» &aYou Don't Have &2Permission &aTo Use This Command! | |
| 15 | trigger: | |
| 16 | if arg 1 is "add": | |
| 17 | - | if player is op: |
| 17 | + | |
| 18 | - | if arg 3 is greater than 0: |
| 18 | + | |
| 19 | - | add arg 3 to {balance::%arg 2%}
|
| 19 | + | add arg 3 to {balance::%arg 2%}
|
| 20 | - | message "&a&lJailed&2&lX &8» &aYou Gave &2%arg 2% %arg 3% &aCoins." |
| 20 | + | message "&a&lJailed&2&lX &8» &aYou Gave &2%arg 2% %arg 3% &aCoins." |
| 21 | - | message "&a&lJailed&2&lX &8» &2%arg 3% &aCoins Has Been Added To Your Account." to arg 2 |
| 21 | + | message "&a&lJailed&2&lX &8» &2%arg 3% &aCoins Has Been Added To Your Account." to arg 2 |
| 22 | if arg 3 is not set: | |
| 23 | message "&a&lJailed&2&lX &8» You Can't Give Someone A Value Less Than 1 Coin!" | |
| 24 | else if: | |
| 25 | if arg 1 is "remove": | |
| 26 | if player is op: | |
| 27 | if arg 3 is greater than 0: | |
| 28 | - | if arg 3 is less than or equal to {balance::%arg 2%}:
|
| 28 | + | if arg 3 is less than or equal to {balance::%arg 2%}:
|
| 29 | else: | |
| 30 | subtract arg 3 from {balance::%arg 2%}
| |
| 31 | message "&a&lJailed&2&lX &8» &aYou Removed &2%arg 2% %arg 3% &aCoins." | |
| 32 | message "&a&lJailed&2&lX &8» &2%arg 3% &aCoins Have Been Removed From Your Account." to arg 2 | |
| 33 | else: | |
| 34 | message "&a&lJailed&2&lX &8» You Can't Remove A Value Less Than 1 Coin!" |