Advertisement
Guest User

Ejros_Kity

a guest
Apr 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. variables:
  2. czas.start.%player% = 0
  3. czas.vip.%player% = 0
  4. czas.svip.%player% = 0
  5. czas.yt.%player% = 0
  6. command /kits [<text>]:
  7. trigger:
  8. arg 1 is not set:
  9. execute player command "/kit"
  10. arg 1 is set:
  11. execute player command "/kit"
  12. command /kit [<text>]:
  13. trigger:
  14. arg 1 is not set:
  15. wait 3 ticks
  16. open chest with 1 rows named "&7Zestawy" to player
  17. format slot 1 of player with 1 of 268 named "&8» &aStart" to close then run [execute player command "/kit start"]
  18. format slot 3 of player with 1 of 272 named "&8» &aVip" to close then run [execute player command "/kit vip"]
  19. format slot 5 of player with 1 of 267 named "&8» &aSVip" to close then run [execute player command "/kit svip"]
  20. format slot 7 of player with 1 of 283 named "&8» &aYt" to close then run [execute player command "/kit yt"]
  21. arg 1 is "start":
  22. if player has permission "kit.start":
  23. if {czas.start.%player%} is "teraz":
  24. wait 3 ticks
  25. open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
  26. set slot 0 of current inventory of player to chain helmet
  27. set slot 1 of current inventory of player to chain chestplate
  28. set slot 2 of current inventory of player to chain leggings
  29. set slot 3 of current inventory of player to chain boots
  30. set slot 4 of current inventory of player to iron sword of sharpness 2
  31. set slot 5 of current inventory of player to iron pickaxe of efficiency 3, unbreaking 3
  32. set slot 6 of current inventory of player to iron pickaxe of efficiency 3, unbreaking 3
  33. set slot 7 of current inventory of player to 64 steak of unbreaking 1
  34. set slot 8 of current inventory of player to 64 steak of unbreaking 1
  35. if player has permission "kit.admin":
  36. stop
  37. else:
  38. set {czas.start.%player%} to 1800
  39. send "&8» &7Odebrales zestaw &estart"
  40. loop 1800 times:
  41. wait 1 real seconds
  42. remove 1 from {czas.start.%player%}
  43. else:
  44. send "&8» &7Ten zestaw jest dostepny za &c%{czas.start.%player%}% &7sekund"
  45. else:
  46. send "&8» &7Nie masz uprawnien!"
  47. arg 1 is "vip":
  48. if player has permission "kit.vip":
  49. if {czas.vip.%player%} is "teraz":
  50. wait 3 ticks
  51. open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
  52. set slot 0 of current inventory of player to diamond helmet of protection 3, unbreaking 2
  53. set slot 1 of current inventory of player to diamond chestplate of protection 3, unbreaking 2
  54. set slot 2 of current inventory of player to diamond leggings of protection 3, unbreaking 2
  55. set slot 3 of current inventory of player to diamond boots of protection 3, unbreaking 2
  56. set slot 4 of current inventory of player to diamond sword of sharpness 4, fire aspect 1
  57. set slot 5 of current inventory of player to diamond pickaxe of efficiency 4, unbreaking 2
  58. set slot 6 of current inventory of player to diamond axe of efficiency 4, unbreaking 2
  59. set slot 7 of current inventory of player to 10 enchanted golden apple
  60. set slot 8 of current inventory of player to 20 golden apple
  61. if player has permission "kit.admin":
  62. stop
  63. else:
  64. set {czas.vip.%player%} to 10800
  65. send "&8» &7Odebrales zestaw &evip"
  66. loop 10800 times:
  67. wait 1 real seconds
  68. remove 1 from {czas.vip.%player%}
  69. else:
  70. send "&8» &7Ten zestaw jest dostepny za &c%{czas.vip.%player%}% &7sekund"
  71. else:
  72. send "&8» &7Nie masz uprawnien!"
  73. arg 1 is "svip":
  74. if player has permission "kit.svip":
  75. if {czas.svip.%player%} is "teraz":
  76. wait 3 ticks
  77. open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
  78. set slot 0 of current inventory of player to diamond helmet of protection 4, unbreaking 3
  79. set slot 1 of current inventory of player to diamond chestplate of protection 4, unbreaking 3
  80. set slot 2 of current inventory of player to diamond leggings of protection 4, unbreaking 3
  81. set slot 3 of current inventory of player to diamond boots of protection 4, unbreaking 3
  82. set slot 4 of current inventory of player to diamond sword of sharpness 5, fire aspect 2
  83. set slot 5 of current inventory of player to diamond pickaxe of efficiency 5, unbreaking 3
  84. set slot 6 of current inventory of player to diamond axe of efficiency 5, unbreaking 3
  85. set slot 7 of current inventory of player to 20 enchanted golden apple
  86. set slot 8 of current inventory of player to 40 golden apple
  87. if player has permission "kit.admin":
  88. stop
  89. else:
  90. set {czas.svip.%player%} to 10800
  91. send "&8» &7Odebrales zestaw &evip"
  92. loop 10800 times:
  93. wait 1 real seconds
  94. remove 1 from {czas.svip.%player%}
  95. else:
  96. send "&8» &7Ten zestaw jest dostepny za &c%{czas.svip.%player%}% &7sekund"
  97. else:
  98. send "&8» &7Nie masz uprawnien!"
  99. arg 1 is "yt":
  100. if player has permission "kit.yt":
  101. if {czas.yt.%player%} is "teraz":
  102. wait 3 ticks
  103. open chest with 1 rows named "&7Zestaw &e%arg 1%" to player
  104. set slot 0 of current inventory of player to diamond helmet of protection 4, unbreaking 3
  105. set slot 1 of current inventory of player to diamond chestplate of protection 4, unbreaking 3
  106. set slot 2 of current inventory of player to diamond leggings of protection 4, unbreaking 3
  107. set slot 3 of current inventory of player to diamond boots of protection 4, unbreaking 3
  108. set slot 4 of current inventory of player to diamond sword of sharpness 5, fire aspect 2
  109. set slot 5 of current inventory of player to diamond pickaxe of efficiency 5, unbreaking 3
  110. set slot 6 of current inventory of player to diamond axe of efficiency 5, unbreaking 3
  111. set slot 7 of current inventory of player to 20 enchanted golden apple
  112. set slot 8 of current inventory of player to 40 golden apple
  113. if player has permission "kit.admin":
  114. stop
  115. else:
  116. set {czas.yt.%player%} to 10800
  117. send "&8» &7Odebrales zestaw &eyt"
  118. loop 10800 times:
  119. wait 1 real seconds
  120. remove 1 from {czas.yt.%player%}
  121. else:
  122. send "&8» &7Ten zestaw jest dostepny za &c%{czas.yt.%player%}% &7sekund"
  123. else:
  124. send "&8» &7Nie masz uprawnien!"
  125. every 1 seconds:
  126. loop all players:
  127. if {czas.start.%loop-player%} is less than 2:
  128. set {czas.start.%loop-player%} to "teraz"
  129. if {czas.vip.%loop-player%} is less than 2:
  130. set {czas.vip.%loop-player%} to "teraz"
  131. if {czas.svip.%loop-player%} is less than 2:
  132. set {czas.svip.%loop-player%} to "teraz"
  133. if {czas.yt.%loop-player%} is less than 2:
  134. set {czas.yt.%loop-player%} to "teraz"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement