Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /coins [<player>]:
- trigger:
- if {balance::%player%} is not set:
- set {balance::%player%} to 0
- if arg 1 is not set:
- message "&7Your currently have &b%{balance::%player%}% &7coin(s)"
- else:
- message "&7%arg 1% currently has &b%{balance::%arg 1%}% &7coin(s)"
- command /cc <text> [<player>] [<integer>]:
- trigger:
- if arg 1 is "pay":
- arg 2 is set
- arg 3 is set
- if {balance::%player%} is greater than or equal to arg 3:
- if arg 3 is greater than 0
- subtract arg 3 from {balance::%player%}
- add arg 3 to {balance::%arg 2%}
- message "&7You gave &b%arg 2% &7coin(s) to %arg 3%"
- message "&7You received &barg 3% &7coins from %arg 2%
- else:
- message "&cValue must be greater than 1"
- else:
- message: "&cYou don't have enough coins to do that"
- else if arg 1 is "add":
- if player is op:
- if arg 3 is greater than 0:
- add arg 3 to {balance::%arg 2%}
- message "&You gave &b%arg 3% &7coin(s) &7to %arg 2%"
- message "&b%arg 3% &7coin(s) has been added to your account" arg 2
- else:
- message: "&cValue must be greater than 0"
- else if arg 1 is "remove":
- if player is op:
- if arg 3 is greater than 0:
- if arg 3 is less than or equal to {balance::%arg 2%}:
- subtract arg 3 from {balance::%arg 2%}
- message "&7You removed &b%arg 3% &7coin(s) from %arg 2%
- message "&b%arg 3% &7coin(s) has been removed from your account" to arg 2
- else:
- message "&cValue must be greater than 0"
- else:
- message: "&cValue must be greater than 0"
- else if arg 1 is "clear":
- if player is op:
- delete {balance::%arg 2%}
- message "&c%arg 2%'s coin(s) have be cleared"
- else if arg 1 is "clearall":
- if player is op:
- delete {balance::*}
- message "&cAll player coins have been cleared"
- else:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement