Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # BY @ADXM#1343
- #
- # REQUIRED: Skript
- # Without these, it will not work!
- #
- options:
- default-amount: 100 # Gives this amount of money to players when they join!
- currency: $
- P: &3&lECO&7
- on join:
- if {eco::balance::%player's uuid%} is not set:
- set {eco::balance::%player's uuid%} to {@default-amount}
- command /eco [<text>] [<player>] [<integer>]:
- trigger:
- if arg-1 is not set:
- send ""
- send "{@P} Commands"
- send ""
- send "&c> &7/balance"
- send "&c> &7/eco set [player] [amount]"
- send "&c> &7/eco add [player] [amount]"
- send "&c> &7/eco remove [player] [amount]"
- send "&c> &7/eco reset [player]"
- send ""
- else if arg-1 is "set":
- if arg-2 is set:
- if arg-3 is set:
- set {eco::balance::%arg-2's uuid%} to arg-3
- send "{@P} Set &3%arg-2%&7's balance to &3%arg-3%"
- else:
- send "{@P} &cUSAGE: &7/eco set [player] [amount]"
- else:
- send "{@P} &cUSAGE: &7/eco set [player] [amount]"
- else if arg-1 is "add":
- if arg-2 is set:
- if arg-3 is set:
- add arg-3 to {eco::balance::%arg-2's uuid%}
- send "{@P} Added &3%arg-3% to &3%arg-2%&7's balance &o(balance: &3%{eco::balance::%arg-2's uuid%}%&7)"
- else:
- send "{@P} &cUSAGE: &7/eco add [player] [amount]"
- else:
- send "{@P} &cUSAGE: &7/eco add [player] [amount]"
- else if arg-1 is "remove":
- if arg-2 is set:
- if arg-3 is set:
- remove arg-3 from {eco::balance::%arg-2's uuid%}
- send "{@P} Removed &3%arg-3% from &3%arg-2%&7's balance &o(balance: &3%{eco::balance::%arg-2's uuid%}%&7)"
- else:
- send "{@P} &cUSAGE: &7/eco remove [player] [amount]"
- else:
- send "{@P} &cUSAGE: &7/eco remove [player] [amount]"
- else if arg-1 is "reset":
- if arg-2 is set:
- set {eco::balance::%arg-2's uuid%} to 0
- send "{@P} Reset &3%arg-2%&7's balance"
- else:
- send "{@P} &cUSAGE: &7/eco reset [player]"
- command /bal:
- aliases: balance
- trigger:
- send "{@P} You have &3{@currency}%{eco::balance::%player's uuid%}%&7!"
Advertisement
Add Comment
Please, Sign In to add comment