Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {eco.%player's uuid%} is not set:
- set {eco.%player's uuid%} to 0
- add player to {eco::list::*}
- add 1 to {eco1.list}
- on skript load:
- loop all players:
- if {eco.%loop-player's uuid%} is not set:
- set {eco.%loop-player's uuid%} to 0
- if {eco::list::*} doesn't contain loop-player:
- add player to {eco::list::*}
- command eco <text> <player> <integer>:
- permission: admin.eco
- aliases: economy
- usage: &7[&9Eternal&fSky&7] /eco <(give|take|reset|)> <player> <amount>
- trigger:
- if world is "Kitpvp":
- if arg-1 is "give" or "add":
- add arg-integer to {eco.%arg-player's uuid%}
- send "&aSuccessfully added $%arg-integer% to %arg-player%'s account!"
- send "&a$%arg-integer% has been added to your account!" to arg-player
- if arg-1 is "take" or "remove":
- remove arg-integer from {eco.%arg-player's uuid%}
- send "&cSuccessfully took $%arg-integer% from %arg-player%'s account"
- send "&c$%arg-integer% has been taken from your account!" to arg-player
- if arg-1 is "reset":
- set {eco.%arg-player's uuid%} to 0
- send "&cSuccessfully reset %arg-player%'s balance!"
- send "&cYour balance has been reset!"
- if arg-1 is "reset-all":
- loop all players in {eco::list::*}:
- set {rollback.%loop-player's uuid%} to {eco.%loop-player's uuid%}
- set {eco.%loop-player's uuid%} to 0
- send "&cYou reset the balance of everybody in the server!"
- send "&cYour balance has been reset!" to loop-player
- else:
- send "&fUnknown command. Type ""/help"" for help."
- stop
- command balance [<player>]:
- permission: bal.use
- aliases: bal
- usage: &7[&9Eternal&fSky&7] /bal [<player>]
- trigger:
- if world is "Kitpvp":
- if arg-player is set:
- if {eco::list::*} contains arg-player:
- send "&cBalance of %arg-player%: &a%{eco.%arg-player's uuid%}%"
- else:
- send "&cThat player has never joined before!"
- else:
- send "&cYour Balance: &a%{eco.%player's uuid%}%"
- else:
- send "&fUnknown command. Type ""/help"" for help."
- on death of player:
- attacker is player:
- if world is "Kitpvp":
- add 15 to {eco.%attacker's uuid%}
- send "&aYou received $15 for killing somebody!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement