Advertisement
Guest User

Untitled

a guest
May 21st, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.86 KB | None | 0 0
  1. #----------------------------------
  2. #
  3. # KIT - MENU - Lavet af FestGaming
  4. #
  5. # @Copyright2017 FestGamingStudios
  6. #
  7. # Kits: Mazer, Pro, Special
  8. #
  9. #----------------------------------
  10.  
  11.  
  12.  
  13. on first join:
  14. give player a nether star named "&8&l(&b&lKIT &7&l- &b&lMENU&8&l)" with lore " &8&oKlik her for at Åbne Kit&7-&8&oMenuen!"
  15. set {auto::kits::%player%} to false
  16. set {ak::%player%} to "&4&lNej"
  17.  
  18.  
  19. on respawn:
  20. if {auto::kits::%player%} is false:
  21. give player a nether star named "&8&l(&b&lKIT &7&l- &b&lMENU&8&l)" with lore " &8&oKlik her for at Åbne Kit&7-&8&oMenuen!"
  22. else:
  23. if player has permission "pvp":
  24. make player execute command "/kit pvp"
  25. if player has permission "mazer" and "pvp":
  26. make player execute command "/kit mazer"
  27. if player has permission "special" and "pvp":
  28. make player execute command "/kit special"
  29. stop
  30.  
  31. on first join:
  32. if {kit:special:%player%} is not set:
  33. set {kit:special:%player%} to true
  34.  
  35. on join:
  36. if {kit:special:%player%} is not set:
  37. set {kit:special:%player%} to true
  38.  
  39. on click holding nether star:
  40. name of player's tool is "&8&l(&b&lKIT &7&l- &b&lMENU&8&l)":
  41. make player execute command "/kit"
  42.  
  43.  
  44. every minute:
  45. loop all players:
  46. if {kit:special:%loop-player%} is false:
  47. remove 1 from {minutter:kits:%loop-player%}
  48. if {minutter:kits:%loop-player%} is 0:
  49. set {kit:special:%loop-player%} to true
  50.  
  51.  
  52.  
  53. command /kit [<text>] [<offline player>]:
  54. trigger:
  55. send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &c&lLoader....." to player
  56. wait 1 second
  57. if arg 1 is not set:
  58. if arg 2 is not set:
  59. open chest with 3 rows named "&b&lKIT &7&l- &b&lMENU&8&l" to player
  60. format slot 10 of player with leather helmet named "&b&lKIT &7&l- &b&lPvP" with lore "&7Tryk her for at modtage dette kit. || &8&oDette kit kan alle tage!" to close then run [make player execute command "/kit pvp"]
  61. format slot 16 of player with iron helmet named "&6&lKIT &7&l- &6&lMazer" with lore "&7Tryk her for at modtage dette kit. || &8&oDette kit kan kun &6&lMazer &8&otage!" to close then run [make player execute command "/kit mazer"]
  62. format slot 4 of player with diamond helmet named "&b&lKIT &7&l- &e&lSpecial" with lore "&7Tryk her for at modtage dette kit. || &8&oDette kit kan alle tage! ||&7Status: &6%{minutter:kits:%player%}% Minutter&7, endu" to close then run [make player execute command "/kit special"]
  63. format slot 22 of player with diamond helmet named "&b&lKIT &7&l- &e&lSpecial" with lore "&7Tryk her for at modtage dette kit. || &8&oDette kit kan alle tage! ||&7Status: &6%{minutter:kits:%player%}% Minutter&7, endu" to close then run [make player execute command "/kit special"]
  64. format slot 13 of player with nether star named "&b&lAUTO &7&l- &b&lKIT" with lore "&7Tryk her for at sætte denne funktion Til&8/&7Fra ||&7Status: %{ak::%player%}%|| &8&oDette kan alle bruge!" to close then run [make player execute command "/kit autokit"]
  65. stop
  66. if arg 1 is "pvp":
  67. if player's inventory contains 1 nether star:
  68. remove 1 nether star from player's inventory
  69. give player a diamond sword named "&b&lPvP"
  70. give player a bow named "&b&lPvP"
  71. give player a fishing rod named "&b&lPvP"
  72. give player 64 cooked porkchop named "&b&lPvP"
  73. give player 64 arrow named "&b&lPvP"
  74. give player a iron helmet named "&b&lPvP"
  75. give player a iron chestplate named "&b&lPvP"
  76. give player a iron leggings named "&b&lPvP"
  77. give player a iron boots named "&b&lPvP"
  78. send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &7Du modtog nu kit &b&lPvP&7!" to player
  79. stop
  80. if arg 1 is "mazer":
  81. if player has permission "mazer":
  82. if player's inventory contains 1 nether star:
  83. remove 1 nether star from player's inventory
  84. give player a diamond sword of sharpness 1 named "&6&lMazer"
  85. give player a bow named "&6&lMazer"
  86. give player a fishing rod named "&6&lMazer"
  87. give player 64 cooked porkchop named "&6&lMazer"
  88. give player 64 arrow named "&6&lMazer"
  89. give player a diamond helmet of protection 1 named "&6&lMazer"
  90. give player a iron chestplate named "&6&lMazer"
  91. give player a diamond leggings of protection 1 named "&6&lMazer"
  92. give player a iron boots named "&6&lMazer"
  93. send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &7Du modtog nu kit &6&lMazer&7!" to player
  94. stop
  95. else:
  96. send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &cDu har ikke adgang til Kittet &6&lMazer&c!" to player
  97. stop
  98. if arg 1 is "special":
  99. if {kit:special:%player%} is true:
  100. if player's inventory contains 1 nether star:
  101. remove 1 nether star from player's inventory
  102. give player a diamond sword of sharpness 2 named "&e&lSpecial"
  103. give player a bow of power 2 named "&e&lSpecial"
  104. give player a fishing rod named "&e&lSpecial"
  105. give player 64 cooked porkchop named "&e&lSpecial"
  106. give player 64 arrow named "&e&lSpecial"
  107. give player a diamond helmet of protection 1 named "&e&lSpecial"
  108. give player a diamond chestplate named "&e&lSpecial"
  109. give player a diamond leggings of protection 1 named "&e&lSpecial"
  110. give player a diamond boots named "&e&lSpecial"
  111. set {kit:special:%player%} to false
  112. set {minutter:kits:%player%} to 30
  113. send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &7Du modtog nu kit &e&lSpecial&7! &8(&cHUSK! &7Du skal være på i &630 &7Minutter fra nu af, før du kan tage dette kit igen!&8)" to player
  114. stop
  115. else:
  116. send "&8&l(&b&lKIT &7&l- &b&lMENU&8&l) &cDu har ikke adgang til Kittet &e&lSpecial &7lige nu! &8(&7Du skal stadig vente &6%{minutter:kits:%player%}% &7Minutter endu!&8)" to player
  117. stop
  118. if arg 1 is "autokit":
  119. if {ak::%player%} is "&4&lNej":
  120. set {auto::kits::%player%} to true
  121. set {ak::%player%} to "&2&lJa"
  122. send "&8&l(&4&lAUTO &7&l- &c&lKIT&8&l) &7Satte nu dit Auto&8-&7Kit til %{ak::%player%}%&7!"
  123. else:
  124. set {auto::kits::%player%} to false
  125. set {ak::%player%} to "&4&lNej"
  126. send "&8&l(&4&lAUTO &7&l- &c&lKIT&8&l) &7Satte nu dit Auto&8-&7Kit til %{ak::%player%}%&7!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement