SHARE
TWEET

Untitled

a guest Apr 24th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /kit [<text>]:
  2.      trigger:
  3.           if arg-1 is not set:
  4.                send "&cInvalid Command"
  5.           else:
  6.                if arg-1 is "Default":
  7.                     set {_waited} to difference between {default.%uuid of player%} and now
  8.                     if {_waited} is less than 5 days:
  9.                          message "&cYou have to wait &f%difference between 5 days and {_waited}% &cbefore you can use this kit again!"
  10.                          stop
  11.                     give player 1 iron sword
  12.                     give player 1 iron pickaxe
  13.                     give player 1 iron shovel
  14.                     give player 1 iron axe
  15.                     give player 1 golden shovel
  16.                     give player 16 torches
  17.                     give player 64 steak
  18.                     execute console command "crate key %player% default 1"
  19.                     set {default.%uuid of player%} to now
  20.                else if arg-1 is "VIP":
  21.                     if player has the permission "kit.vip":
  22.                          set {_waited} to difference between {vip.%uuid of player%} and now
  23.                          if {_waited} is less than 10 days:
  24.                               message "&cYou have to wait &f%difference between 10 days and {_waited}% &cbefore you can use this kit again!"
  25.                               stop
  26.                          give player 1 diamond sword
  27.                          give player 1 diamond pickaxe
  28.                          give player 1 diamond shovel
  29.                          give player 1 diamond axe
  30.                          give player 32 torches
  31.                          give player 64 steak
  32.                          execute console command "crate key %player% vip 1"
  33.                          set {vip.%uuid of player%} to now
  34.                     else:
  35.                          send "&cYou cannot use this kit"
  36.                else if arg-1 is "Weekly":
  37.                     if player has the permissions "kit.weekly":
  38.                          set {_waited} to difference between {weekly.%uuid of player%} and now
  39.                          if {_waited} is less than 7 days:
  40.                               message "&cYou have to wait &f%difference between 7 days and {_waited}% &cbefore you can use this kit again!"
  41.                               stop
  42.                          execute console command "crate key %player% weekly 1"
  43.                          set {weekly.%uuid of player%} to now
  44.                else:
  45.                     send "&cInvalid Kit Name"
  46. if arg-1 is not set:
  47.                send "&cInvalid Command"
  48.                else:
  49.                if arg-1 is "Reset"
  50.                if {1timekit:%uuid of player%} is set:
  51.                message "&cYou can only uise this kit once!"
  52.                stop
  53.                     execute console command "eco give %player% 250000"
  54.                     set {default.%uuid of player%} to now
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top