Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /kit [<text>]:
- trigger:
- if arg-1 is not set:
- send "&cInvalid Command"
- else:
- if arg-1 is "Default":
- set {_waited} to difference between {default.%uuid of player%} and now
- if {_waited} is less than 5 days:
- message "&cYou have to wait &f%difference between 5 days and {_waited}% &cbefore you can use this kit again!"
- stop
- give player 1 iron sword
- give player 1 iron pickaxe
- give player 1 iron shovel
- give player 1 iron axe
- give player 1 golden shovel
- give player 16 torches
- give player 64 steak
- execute console command "crate key %player% default 1"
- set {default.%uuid of player%} to now
- else if arg-1 is "VIP":
- if player has the permission "kit.vip":
- set {_waited} to difference between {vip.%uuid of player%} and now
- if {_waited} is less than 10 days:
- message "&cYou have to wait &f%difference between 10 days and {_waited}% &cbefore you can use this kit again!"
- stop
- give player 1 diamond sword
- give player 1 diamond pickaxe
- give player 1 diamond shovel
- give player 1 diamond axe
- give player 32 torches
- give player 64 steak
- execute console command "crate key %player% vip 1"
- set {vip.%uuid of player%} to now
- else:
- send "&cYou cannot use this kit"
- else if arg-1 is "Weekly":
- if player has the permissions "kit.weekly":
- set {_waited} to difference between {weekly.%uuid of player%} and now
- if {_waited} is less than 7 days:
- message "&cYou have to wait &f%difference between 7 days and {_waited}% &cbefore you can use this kit again!"
- stop
- execute console command "crate key %player% weekly 1"
- set {weekly.%uuid of player%} to now
- else:
- send "&cInvalid Kit Name"
- if arg-1 is not set:
- send "&cInvalid Command"
- else:
- if arg-1 is "Reset"
- if {1timekit:%uuid of player%} is set:
- message "&cYou can only uise this kit once!"
- stop
- execute console command "eco give %player% 250000"
- set {default.%uuid of player%} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement