Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. command /kit [<text>]:
  2. trigger:
  3. if arg-1 is not set:
  4. if player has permission "kits":
  5. open chest with 3 rows named " &d&lKit&c&l-&d&lMenu!" to player
  6. format slot 11 of player with book named "&eKit c!" with lore "&cDu skal være i C for at tage dette kit!" to close then run [make player execute command "kit C"]
  7. format slot 13 of player with book named "&aKit B!" with lore "&eDu skal være i B for at tage dette kit!" to close then run [make player execute command "kit B"]
  8. format slot 15 of player with book named "&cKit A!" with lore "&aDu skal være i A for at tage dette kit!" to close then run [make player execute command "kit A"]
  9. if arg-1 is "C":
  10. if player has permission "kit.c":
  11. set {_waited} to difference between {kit.C::%uuid of player%.brugt} and now
  12. if {_waited} is less than 24 hours:
  13. message "Du kan første tage kittet igen om %{_waited}%"
  14. stop
  15. set {kit.C::%uuid of player%.brugt} to now
  16. message "Du tog dit kit."
  17. give player 1 iron pickaxe
  18. give player 1 stone pickaxe
  19. give player 16 apple
  20. if arg-1 is "B":
  21. if player has permission "kit.b":
  22. set {_waited} to difference between {kit.C::%uuid of player%.brugt} and now
  23. if {_waited} is less than 24 hours:
  24. message "Du kan første tage kittet igen om %{_waited}%"
  25. stop
  26. set {kit.C::%uuid of player%.brugt} to now
  27. give player 1 diamond pickaxe
  28. give player 1 iron pickaxe
  29. give player 32 steak
  30. if arg-1 is "A":
  31. if player has permission "kit.a":
  32. set {_waited} to difference between {kit.C::%uuid of player%.brugt} and now
  33. if {_waited} is less than 24 hours:
  34. message "Du kan første tage kittet igen om %{_waited}%"
  35. stop
  36. set {kit.C::%uuid of player%.brugt} to now
  37. give player 1 diamond pickaxe
  38. give player 1 diamond pickaxe
  39. give player 64 steak
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement