Advertisement
MilkTeaPopcorn

Untitled

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