Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Skript by nimajnb and magicalworld13
- # easy eco skript with customizible shop
- # commands are: /money [give] or [set] ore [remove] [player] and then the amount of money
- command /money [<text>] [<offlineplayer>] [<number>]:
- trigger:
- if arg-1 is not set:
- send "&7You have &a%{money.%player's uuid%}%&a$&7 in your account."
- if arg-1 is set:
- if arg-1 is not "set" or "give" or "remove":
- send "Incorrect usage. Use /money (set/give/remove) (player) (amount)"
- if arg-1 is "set" or "give" or "remove":
- if arg-2 is not set:
- send "&cYou need to specify a player."
- if arg-2 is set:
- if {money.%arg-2's uuid%} does not exist:
- send "%arg-2% is not registered."
- if {money.%player's uuid%} exists:
- if arg-3 is not set:
- send "&cYou need to specify how much money you would like to %arg-1%&7."
- if arg-3 is set:
- if arg-3 is a number:
- if arg-1 is "set":
- set {money.%arg-2's uuid%} to arg-3
- send "&7You set %arg-2%&7's money to &a%arg-3%&a$"
- if arg-1 is "give":
- add arg-3 to {money.%arg-2's uuid%}
- send "&7You gave %arg-2%&a %arg-3%&a$"
- if arg-1 is "remove":
- remove arg-3 from {money.%arg-2's uuid%}
- send "&7You removed &a%arg-3%&a$&7 from %arg-2%"
- command /account [<offlineplayer>]:
- trigger:
- if arg-1 is not set:
- send "&7You have &a%{money.%player's uuid%}%&a$&7 in your account."
- if arg-1 is set:
- if {money.%arg-1's uuid%} is set:
- send "&7%arg-1%&7 has &a%{money.%player's uuid%}%&a$&7 in their account."
- on death of a player:
- if attacker is a player:
- add 20 to {money.%attacker's uuid%}
- send "&cYou killed %victim% and earned 20$" to attacker
- command /shop:
- trigger:
- open virtual chest inventory with size 4 named "&aShop" to player
- format gui slot 3 of player with skull of player named "&8&lUser: &7&l%player%"
- format gui slot 4 of player with oak sign named "&a&lShop"
- format gui slot 20 of player with paper named "&a&lVIP" with lore "&7Cost: 200$"
- format gui slot 21 of player with paper named "&c&lMVP" with lore "&7Cost: 280$"
- format gui slot 22 of player with paper named "&b&lElite" with lore "&7Cost: 500$"
- format gui slot 23 of player with paper named "&3&lOVERLORD" with lore "&7Cost: 1500$"
- format gui slot 24 of player with paper named "&d&lGod" with lore "&7Cost: 3000$"
- on join:
- if {money.%player's uuid%} is not set:
- set {money.%player's uuid%} to 0
- on inventory click:
- if clicked item is paper:
- if {money.%player's uuid%} is not set:
- set {money.%player's uuid%} to 0
- if name of clicked item is "&a&lVIP":
- if {money.%player's uuid%} is less than 200:
- send "&cYou do not have 200$"
- stop
- remove 200 from {money.%player's uuid%}
- make console execute command "pex user %player% group add vip"
- send "&aYou succesfully purchased VIP"
- if name of clicked item is "&b&lMVP":
- if {money.%player's uuid%} is less than 280:
- send "&cYou do not have 280$"
- stop
- remove 280 from {money.%player's uuid%}
- make console execute command "pex user %player% group add mvp"
- send "&aYou succesfully purchased &c&lMVP"
- if name of clicked item is "&b&lElite":
- if {money.%player's uuid%} is less than 500:
- send "&cYou do not have 500$"
- stop
- remove 500 from {money.%player's uuid%}
- make console execute command "pex user %player% group add elite"
- send "&aYou succesfully purchased &b&lElite"
- if name of clicked item is "&d&lGod":
- if {money.%player's uuid%} is less than 3000:
- send "&cYou do not have 3000$"
- stop
- remove 3000 from {money.%player's uuid%}
- make console execute command "pex user %player% group add god"
- send "&aYou succesfully purchased &d&lGod"
- if name of clicked item is "&3&lOVERLORD":
- if {money.%player's uuid%} is less than 1500:
- send "&cYou do not have 1500$"
- stop
- remove 1500 from {money.%player's uuid%}
- make console execute command "pex user %player% group add overlord"
- send "&aYou succesfully purchased &3&lOVERLORD"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement