Advertisement
MilkTeaPopcorn

Untitled

Oct 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.64 KB | None | 0 0
  1. options:
  2. prefix: &6&lKitPvP &r
  3. #-#
  4. no-permission: &cこのコマンドを実行する権限がありません
  5. #-#
  6. title: &f&lようこそ! &6&lKitPvP&f&lサーバーへ!
  7. #-#
  8. subtitle: &f&lWelcome to &6&lKitPvP &f&lServer!
  9. #-#
  10.  
  11. on join:
  12. if {kitpvpkills.%player%} is not set:
  13. set {kitpvpkills.%player%} to 0
  14. if {kitpvpdeaths.%player%} is not set:
  15. set {kitpvpdeaths.%player%} to 0
  16. clear player's inventory
  17. make console execute command "/effect %player% clear"
  18. set slot 0 of player to paper named "&c&lMy Status&7)(Coming soon...)"
  19. set slot 2 of player to emerald named "&a&lShop"
  20. set slot 4 of player to nether star named "&f&lMain Menu"
  21. set slot 6 of player to chest named "&6&lKit Selector"
  22. set slot 8 of player to book named "&7&lServer Help"
  23. set the join message to "&6%player% さんが、サーバーに&aログイン&6しました。"
  24. set gamemode of player to adventure
  25.  
  26. send player title "{@title}" with subtitle "{@subtitle}" for 5 seconds
  27. stop
  28. on first join:
  29. set {kitpvpkills.%player%} to 0
  30. set {kitpvpdeaths.%player%} to 0
  31. set {currentkillstreak.%player%} to 0
  32. set {bestkillstreak.%player%} to 0
  33. send player title "{@title}" with subtitle "{@subtitle}" for 5 seconds
  34.  
  35. command /kitpvp [<text>] [<text>]:
  36. aliases: /kp
  37. trigger:
  38. if arg 1 is not set:
  39. if player has permission "kitpvp.admin":
  40. send "&3&l--------------------------------------------------"
  41. send "&7"
  42. send "&7/kitpvp setspawn &f: &fスポーン地点にテレポートします"
  43. send "&7/kitpvp spawn &f: &fスポーン地点を設定します"
  44. send "&7"
  45. send "&3&l--------------------------------------------------"
  46. else:
  47. send "{@no-permission}"
  48. if arg 1 is "setspawn":
  49. if player has permission "kitpvp.ss":
  50. set {spawn} to player's location
  51. send "{@prefix} &fKitPvPのスポーン地点を設定しました."
  52. stop
  53. else:
  54. send "{@no-permission}"
  55. if arg 1 is "spawn":
  56. teleport player to {spawn}
  57. set gamemode of player to adventure
  58. stop
  59.  
  60. on quit:
  61. set the quit message to "&6%player% さんが、サーバーから&cログアウト&6しました。"
  62.  
  63. on death:
  64. clear drops
  65. victim is a player
  66. attacker is a player
  67. add 1 to {kitpvpkills.%attacker%}
  68. add 1 to {kitpvpdeaths.%victim%}
  69. add 1 to {currentkillstreak.%attacker%}
  70. clear player's inventory
  71. make console execute command "/effect %player% clear"
  72. broadcast "[&6Kill Message&f] &c%victim%&fは、 &a%attacker%&fにキルされました"
  73. set gamemode of player to adventure
  74. stop
  75.  
  76. on respawn:
  77. make console execute command "/effect %player% clear"
  78. clear player's inventory
  79. set slot 0 of player to paper named "&c&lMy Status&7(Coming soon...)"
  80. set slot 2 of player to emerald named "&a&lShop"
  81. set slot 4 of player to nether star named "&f&lMain Menu"
  82. set slot 6 of player to chest named "&6&lKit Selector"
  83. set slot 8 of player to book named "&7&lServer Help"
  84. set gamemode of player to adventure
  85. stop
  86.  
  87. every second:
  88. loop all players:
  89. wipe loop-player's sidebar
  90. set name of sidebar of loop-player to "&6&lKitPvP"
  91. set score "&a" in sidebar of loop-player to 6
  92. set score "&fName: &a%loop-player% " in sidebar of loop-player to 5
  93. set score "&2" in sidebar of loop-player to 4
  94. set score "&fKills: &a%{kitpvpkills.%loop-player%}%" in sidebar of loop-player to 3
  95. set score "&fDeaths: &c%{kitpvpdeaths.%loop-player%}%" in sidebar of loop-player to 2
  96. set score "&2" in sidebar of loop-player to 1
  97. set score "&ehttps://discord.gg/5e4t3SS" in sidebar of loop-player to 0
  98.  
  99. command /kitselect [<text>]:
  100. aliases: /ks
  101. trigger:
  102. if arg-1 is not set:
  103. wait 2 ticks
  104. open chest with 3 row named "&7[&aキットを選択&7]" to player
  105. wait 2 ticks
  106. format slot 0 of player with white stained glass pane named "&l" to close
  107. format slot 1 of player with white stained glass pane named "&l" to close
  108. format slot 2 of player with white stained glass pane named "&l" to close
  109. format slot 3 of player with white stained glass pane named "&l" to close
  110. format slot 4 of player with white stained glass pane named "&l" to close
  111. format slot 5 of player with white stained glass pane named "&l" to close
  112. format slot 6 of player with white stained glass pane named "&l" to close
  113. format slot 7 of player with white stained glass pane named "&l" to close
  114. format slot 8 of player with white stained glass pane named "&l" to close
  115. format slot 9 of player with white stained glass pane named "&l" to close
  116. format slot 10 of player with white stained glass pane named "&l" to close
  117. format slot 16 of player with white stained glass pane named "&l" to close
  118. format slot 17 of player with white stained glass pane named "&l" to close
  119. format slot 18 of player with white stained glass pane named "&l" to close
  120. format slot 19 of player with white stained glass pane named "&l" to close
  121. format slot 20 of player with white stained glass pane named "&l" to close
  122. format slot 21 of player with white stained glass pane named "&l" to close
  123. format slot 22 of player with white stained glass pane named "&l" to close
  124. format slot 23 of player with white stained glass pane named "&l" to close
  125. format slot 24 of player with white stained glass pane named "&l" to close
  126. format slot 25 of player with white stained glass pane named "&l" to close
  127. format slot 26 of player with white stained glass pane named "&l" to close
  128. format slot 11 of player with diamond sword named "&7[&f&lKnight&7]" with lore "&7[&a&lこのキットは使用可能です&7]" to close then run [execute player command "/kitselect knight"]
  129. format slot 12 of player with diamond chestplate named "&7[&b&lTank&7]" with lore "&7[&a&lこのキットは使用可能です&7]" to close then run [execute player command "/kitselect tank"]
  130. format slot 13 of player with bow named "&7[&6&lArcher&7]" with lore "&7[&a&lこのキットは使用可能です&7]" to close then run [execute player command "/kitselect archer"]
  131. if player doesn't have permission "kitselect.*" or "ks.pyro":
  132. format slot 14 of player with red stained glass pane of unbreaking 1 named "&7[&c&lPyro&e]" with lore "&7[&c&lこのキットは購入することで使用可能になります&7]" to be unstealable
  133. if player has permission "kitselect.*" or "ks.pyro":
  134. format slot 14 of player with flint and steel named "&7[&c&lPyro&7]" with lore "&7[&a&lこのキットは購入済みです&7]" to close then run [execute player command "/kitselect pyro"]
  135. if player doesn't have permission "kitselect.*" or "ks.assassin":
  136. format slot 15 of player with red stained glass pane of unbreaking 1 named "&7[&e&lAssasin&e]" with lore "&7[&c&lこのキットは購入することで使用可能になります&7]" to be unstealable
  137. if player has permission "kitselect.*" or "ks.assassin":
  138. format slot 15 of player with feather named "&7[&e&lAssassin&7]" with lore "&7[&a&lこのキットは購入済みです&7]" to close then run [execute player command "/kitselect assassin"]
  139.  
  140. if arg-1 is "knight":
  141. loop all players:
  142. make console execute command "/effect %player% clear"
  143. clear player's inventory
  144. set slot 0 of player to diamond sword of sharpness 1 and unbreaking 3
  145. set slot 1 of player to 2 golden apple
  146. set slot 9 of player to 64 arrows
  147. equip player with iron helmet of protection 2 and unbreaking 3
  148. equip player with iron chestplate of protection 2 and unbreaking 3
  149. equip player with iron leggings of protection 2 and unbreaking 3
  150. equip player with iron boots of protection 2 and unbreaking 3
  151. message "[&6KitPvP&r] あなたはナイトを選択しました!"
  152. teleport player to {spawn}
  153. stop
  154.  
  155. if arg-1 is "tank":
  156. loop all players:
  157. make console execute command "/effect %player% clear"
  158. clear player's inventory
  159. set slot 0 of player to iron sword of sharpness 1 and unbreaking 3
  160. set slot 2 of player to 2 golden apple
  161. set slot 9 of player to 64 arrows
  162. equip player with diamond helmet of protection 2 and unbreaking 3
  163. equip player with diamond chestplate of protection 2 and unbreaking 3
  164. equip player with diamond leggings of protection 2 and unbreaking 3
  165. equip player with diamond boots of protection 2 and unbreaking 3
  166. apply slowness to player for 9999 days
  167. message "[&6KitPvP&r] あなたはタンクを選択しました!"
  168. teleport player to {spawn}
  169. stop
  170.  
  171. if arg-1 is "archer":
  172. loop all players:
  173. make console execute command "/effect %player% clear"
  174. clear player's inventory
  175. set slot 0 of player to stone sword of sharpness 1 and unbreaking 3
  176. set slot 1 of player to bow of power 3 and unbreaking 3
  177. set slot 2 of player to 2 golden apple
  178. set slot 9 of player to 64 arrows
  179. equip player with chainmail helmet of protection 1 and unbreaking 3
  180. equip player with chainmail chestplate of protection 1 and unbreaking 3
  181. equip player with chainmail leggings of protection 1 and unbreaking 3
  182. equip player with chainmail boots of protection 1 and unbreaking 3
  183. apply speed to player for 9999 days
  184. message "[&6KitPvP&r]あなたはアーチャーを選択しました!"
  185. teleport player to {spawn}
  186. stop
  187.  
  188. if arg-1 is "pyro":
  189. loop all players:
  190. make console execute command "/effect %player% clear"
  191. clear player's inventory
  192. set slot 0 of player to iron sword of sharpness 1 and unbreaking 3
  193. set slot 1 of player to blaze rod of fire aspect 1
  194. set slot 2 of player to 2 golden apple
  195. set slot 3 of player to 64 steak
  196. set slot 9 of player to 64 arrows
  197. equip player with iron helmet of protection 1 and unbreaking 3
  198. equip player with gold chestplate of protection 2 and unbreaking 3
  199. equip player with gold leggings of protection 2 and unbreaking 3
  200. equip player with iron boots of protection 1 and unbreaking 3
  201. message "[&6KitPvP&r] あなたはパイロを選択しました!"
  202. teleport player to {spawn}
  203. stop
  204.  
  205. if arg-1 is "assassin":
  206. loop all players:
  207. make console execute command "/effect %player% clear"
  208. clear player's inventory
  209. set slot 0 of player to gold sword of sharpness 2 and unbreaking 3
  210. set slot 1 of player to 3 feather named "&aLeap"
  211. set slot 3 of player to 2 golden apple
  212. set slot 4 of player to 64 steak
  213. set slot 9 of player to 64 arrows
  214. equip player with gold helmet of protection 1 and unbreaking 3
  215. equip player with iron chestplate of protection 1 and unbreaking 3
  216. equip player with gold leggings of protection 1 and unbreaking 3
  217. equip player with gold boots of protection 1 and unbreaking 3
  218. message "[&6KitPvP&r] あなたはアサシンを選択しました!"
  219. teleport player to {spawn}
  220. stop
  221.  
  222. on rightclick holding paper:
  223. name of held item contains "&c&lMy Status"
  224. execute player command "/killstats"
  225.  
  226. on rightclick holding emerald:
  227. name of held item contains "&a&lShop"
  228. execute player command "/store"
  229.  
  230. on rightclick holding nether star:
  231. name of held item contains "&f&lMain Menu"
  232. execute player command "/menu open %player% jmm"
  233.  
  234. on rightclick holding chest:
  235. name of held item contains "&6&lKit Selector"
  236. execute player command "/ks"
  237.  
  238. on rightclick holding book:
  239. name of held item contains "&7&lServer Help"
  240. execute player command "/help"
  241.  
  242. on rightclick holding name tag:
  243. execute player command "/menu open %player% sc"
  244.  
  245. on rightclick holding feather:
  246. name of held item contains "&aLeap"
  247. remove speed from the player
  248. remove strength from the player
  249. push the player forwards at speed 2
  250. apply speed to player for 5 seconds
  251. apply strength to player for 2 seconds
  252. remove 1 feather from player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement