Advertisement
taktie0304

Untitled

Jul 24th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.80 KB | None | 0 0
  1. command /scoreoption:
  2. permission: skript.admin
  3. trigger:
  4. command "/scoreboard teams add red"
  5. command "/scoreboard teams add blue"
  6. command "/scoreboard teams option red color red"
  7. command "/scoreboard teams option blue color blue"
  8. command "/scoreboard teams option red friendlyfire false"
  9. command "/scoreboard teams option blue friendlyfire false"
  10. command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
  11. command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
  12. set {game} to false
  13. set {start} to false
  14. set {button} to true
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. on rightclick on wood button:
  23. {button} is true
  24. if {start} is false:
  25. if {game} is false:
  26. set {start} to true
  27. wait 1 second
  28. loop all players:
  29. send loop-player title "&a5" with subtitle "&fスタートまで" for 1 seconds
  30. wait 1 second
  31. loop all players:
  32. send loop-player title "&a4" with subtitle "&fスタートまで" for 1 seconds
  33. wait 1 second
  34. loop all players:
  35. send loop-player title "&a3" with subtitle "&fスタートまで" for 1 seconds
  36. wait 1 second
  37. loop all players:
  38. send loop-player title "&a2" with subtitle "&fスタートまで" for 1 seconds
  39. wait 1 second
  40. loop all players:
  41. send loop-player title "&a1" with subtitle "&fスタートまで" for 1 seconds
  42. wait 2 second
  43. set {gameplayer} to 0
  44. loop all players:
  45. if {join.%loop-player%} is true:
  46. add 1 to {gameplayer}
  47. if {gameplayer} <= 1:
  48. broadcast "&c参加人数が足りませんでした"
  49. wait 1 second
  50. set {start} to false
  51. else:
  52. set {red} to 0
  53. set {blue} to 0
  54. set {count} to 120
  55. set {lobby} to location (49, 5, 10)
  56. set {cmdlobby} to "49 5 10"
  57. set {temp} to random integer between 1 and 1
  58. if {temp} == 1:
  59. set {redspawn} to location (-80, 22, 33)
  60. set {bluespawn} to location (-18, 19, 0)
  61. if {temp} == 2:
  62. set {redspawn} to location (1, 5, 0)
  63. set {bluespawn} to location (-1, 5, 0)
  64. set {obsidian} to true
  65. set {putobsidian} to false
  66. command "/scoreboard teams empty red"
  67. command "/scoreboard teams empty blue"
  68. loop all players:
  69. if {join.%loop-player%} is true:
  70. if {a} == 0:
  71. command "clear %loop-player%"
  72. if {obsidian} is true:
  73. command "/give %loop-player% minecraft:obsidian 1 0 {display:{Name:""金ブロックの上に置いてください!""},CanPlaceOn:[""minecraft:gold_block""]}"
  74. set {obsidian} to false
  75. set {died.%loop-player%} to false
  76. set {team.%loop-player%} to "red"
  77. set {teamchat.%loop-player%} to "&c"
  78. delete {mainweapon.%loop-player%}
  79. add 1 to {red}
  80. command "/scoreboard teams join red %loop-player%"
  81. wait 2 ticks
  82. teleport the loop-player to {redspawn}
  83. if {ak47use.%uuid of loop-player%} is true:
  84. if {ak47.%uuid of loop-player%} > 0:
  85. remove 1 from {ak47.%uuid of loop-player%}
  86. set {mainweapon.%loop-player%} to true
  87. command "shot give %loop-player% ak47"
  88. if {mainweapon.%loop-player%} is not set:
  89. if {awpuse.%uuid of loop-player%} is true:
  90. if {awp.%uuid of loop-player%} > 0:
  91. remove 1 from {awp.%uuid of loop-player%}
  92. command "shot give %loop-player% awp"
  93. command "shot give %loop-player% glock18"
  94. give red wool named "&cあなたは赤チームです" to loop-player
  95. equip loop-player with leather helmet
  96. dye loop-player's helmet (255, 51, 0)
  97. set the loop-player's gamemode to adventure
  98. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&c%loop-player%&r%{suffix.%uuid of loop-player%}%"
  99. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を防衛せよ" for 5 seconds
  100. delete {join.%loop-player%}
  101. set {a} to 1
  102. else:
  103. command "clear %loop-player%"
  104. command "/give %loop-player% minecraft:diamond_pickaxe 1 0 {display:{Name:""黒曜石を破壊してください!""},ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
  105. set {died.%loop-player%} to false
  106. set {team.%loop-player%} to "blue"
  107. set {teamchat.%loop-player%} to "&9"
  108. delete {mainweapon.%loop-player%}
  109. add 1 to {blue}
  110. command "/scoreboard teams join blue %loop-player%"
  111. wait 2 ticks
  112. teleport the loop-player to {bluespawn}
  113. if {m4a4use.%uuid of loop-player%} is true:
  114. if {m4a4.%uuid of loop-player%} > 0:
  115. remove 1 from {m4a4.%uuid of loop-player%}
  116. set {mainweapon.%loop-player%} to true
  117. command "shot give %loop-player% m4a4"
  118. if {mainweapon.%loop-player%} is not set:
  119. if {awpuse.%uuid of loop-player%} is true:
  120. if {awp.%uuid of loop-player%} > 0:
  121. remove 1 from {awp.%uuid of loop-player%}
  122. command "shot give %loop-player% awp"
  123. command "shot give %loop-player% usp"
  124. give blue wool named "&9あなたは青チームです" to loop-player
  125. equip loop-player with leather helmet
  126. dye loop-player's helmet (0, 51, 255)
  127. set the loop-player's gamemode to adventure
  128. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&9%loop-player%&r%{suffix.%uuid of loop-player%}%"
  129. set loop-player's display name to " "
  130. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を破壊せよ" for 5 seconds
  131. delete {join.%loop-player%}
  132. set {a} to 0
  133. set {game} to true
  134. broadcast "&c赤%{red}%人&a &9青%{blue}%人 &a参加中"
  135. wait 1 tick
  136. enable PvP
  137. set {start} to false
  138. set {button} to true
  139. else:
  140. send "&c現在試合中です" to player
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149. on damage of player:
  150. if {game} is true:
  151. if {team.%attacker%} == {team.%victim%}:
  152. cancel event
  153.  
  154. on death of player:
  155. if name of attacker's held item contains "USP":
  156. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aUSP&7]--> %{teamchat.%victim%}%%victim%"
  157. else if name of attacker's held item contains "Glock-18":
  158. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aGlock-18&7]--> %{teamchat.%victim%}%%victim%"
  159. else if name of attacker's held item contains "AK-47":
  160. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aAK-47&7]--> %{teamchat.%victim%}%%victim%"
  161. else if name of attacker's held item contains "M4A4":
  162. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aM4A4&7]--> %{teamchat.%victim%}%%victim%"
  163. else if name of attacker's held item contains "AWP":
  164. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&5AWP&7]--> %{teamchat.%victim%}%%victim%"
  165. if {game} is true:
  166. set {died.%player%} to true
  167. set {DeathPoint.%player%} to location of player
  168. force the player to respawn
  169. teleport player to {DeathPoint.%player%}
  170. set the player's gamemode to spectator
  171. remove 1 from {%{team.%victim%}%}
  172. add 1 to {kill.%uuid of attacker%}
  173. add 1 to {death.%uuid of victim%}
  174. add 3 to {xp.%uuid of attacker%}
  175. send "&a+3xp" to attacker
  176. if {putobsidian} is true:
  177. if {red} is 0:
  178. set {button} to false
  179. loop all players:
  180. if {team.%loop-player%} is "red":
  181. send loop-player title " " with subtitle "&f味方が全員倒された" for 3 seconds
  182. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  183. if {team.%loop-player%} is "blue":
  184. send loop-player title " " with subtitle "&f敵は全滅した。黒曜石を破壊せよ" for 3 seconds
  185. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  186. else if {blue} is 0:
  187. set {button} to false
  188. set {game} to false
  189. disable PvP
  190. loop all players:
  191. if {team.%loop-player%} is "red":
  192. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  193. send "&6&l勝利!" to loop-player
  194. send "&a+10xp" to loop-player
  195. add 10 to {xp.%uuid of loop-player%}
  196. add 1 to {win.%uuid of loop-player%}
  197. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  198. if {team.%loop-player%} is "blue":
  199. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  200. send "&9&l敗北..." to loop-player
  201. send "&a+2xp" to loop-player
  202. add 2 to {xp.%uuid of loop-player%}
  203. add 1 to {lose.%uuid of loop-player%}
  204. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  205. wait 6 seconds
  206. loop all players:
  207. if {team.%loop-player%} is set:
  208. close loop-player's inventory
  209. command "clear %loop-player%"
  210. command "kill @e[type=Item]"
  211. give grey dye named "&eゲームに参加する" to loop-player
  212. teleport the loop-player to {lobby}
  213. set rf max hp of loop-player to 20
  214. set health of loop-player to max health of loop-player
  215. set the loop-player's gamemode to adventure
  216. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  217. delete {team.%loop-player%}
  218. command "/fill -43 21 -9 -47 21 -5 air"
  219. command "/fill -11 21 37 -7 21 41 air"
  220. set {button} to true
  221. else:
  222. send "&a試合が終了しました" to loop-player
  223. else:
  224. loop all players:
  225. if {team.%loop-player%} is "red":
  226. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  227. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  228. if {team.%loop-player%} is "blue":
  229. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  230. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  231. else if {red} is 0:
  232. set {button} to false
  233. set {game} to false
  234. disable PvP
  235. loop all players:
  236. if {team.%loop-player%} is "red":
  237. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  238. send "&9&l敗北..." to loop-player
  239. send "&a+2xp" to loop-player
  240. add 2 to {xp.%uuid of loop-player%}
  241. add 1 to {lose.%uuid of loop-player%}
  242. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  243. if {team.%loop-player%} is "blue":
  244. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  245. send "&6&l勝利!" to loop-player
  246. send "&a+10xp" to loop-player
  247. add 10 to {xp.%uuid of loop-player%}
  248. add 1 to {win.%uuid of loop-player%}
  249. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  250. wait 6 seconds
  251. loop all players:
  252. if {team.%loop-player%} is set:
  253. close loop-player's inventory
  254. command "clear %loop-player%"
  255. command "kill @e[type=Item]"
  256. give grey dye named "&eゲームに参加する" to loop-player
  257. teleport the loop-player to {lobby}
  258. set rf max hp of loop-player to 20
  259. set health of loop-player to max health of loop-player
  260. set the loop-player's gamemode to adventure
  261. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  262. delete {team.%loop-player%}
  263. command "/fill -43 21 -9 -47 21 -5 air"
  264. command "/fill -11 21 37 -7 21 41 air"
  265. set {button} to true
  266. else:
  267. send "&a試合が終了しました" to loop-player
  268. else if {blue} is 0:
  269. set {button} to false
  270. set {game} to false
  271. disable PvP
  272. loop all players:
  273. if {team.%loop-player%} is "red":
  274. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  275. send "&6&l勝利!" to loop-player
  276. send "&a+10xp" to loop-player
  277. add 10 to {xp.%uuid of loop-player%}
  278. add 1 to {win.%uuid of loop-player%}
  279. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  280. if {team.%loop-player%} is "blue":
  281. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  282. send "&9&l敗北..." to loop-player
  283. send "&a+2xp" to loop-player
  284. add 2 to {xp.%uuid of loop-player%}
  285. add 1 to {lose.%uuid of loop-player%}
  286. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  287. wait 6 seconds
  288. loop all players:
  289. if {team.%loop-player%} is set:
  290. close loop-player's inventory
  291. command "clear %loop-player%"
  292. command "kill @e[type=Item]"
  293. give grey dye named "&eゲームに参加する" to loop-player
  294. teleport the loop-player to {lobby}
  295. set rf max hp of loop-player to 20
  296. set health of loop-player to max health of loop-player
  297. set the loop-player's gamemode to adventure
  298. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  299. delete {team.%loop-player%}
  300. command "/fill -43 21 -9 -47 21 -5 air"
  301. command "/fill -11 21 37 -7 21 41 air"
  302. set {button} to true
  303. else:
  304. send "&a試合が終了しました" to loop-player
  305. else:
  306. loop all players:
  307. if {team.%loop-player%} is "red":
  308. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  309. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  310. if {team.%loop-player%} is "blue":
  311. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  312. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321. on quit:
  322. if {team.%player%} is set:
  323. delete {team.%player%}
  324. delete {teamchat.%player%}
  325. if {died.%player%} is false:
  326. remove 1 from {%{team.%player%}%}
  327. command "/scoreboard teams leave %{team.%player%}% %player%"
  328. if {red} is 0:
  329. set {button} to false
  330. set {game} to false
  331. disable PvP
  332. loop all players:
  333. if {team.%loop-player%} is "red":
  334. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  335. send "&9&l敗北..." to loop-player
  336. send "&a+2xp" to loop-player
  337. add 2 to {xp.%uuid of loop-player%}
  338. add 1 to {lose.%uuid of loop-player%}
  339. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  340. if {team.%loop-player%} is "blue":
  341. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  342. send "&6&l勝利!" to loop-player
  343. send "&a+10xp" to loop-player
  344. add 10 to {xp.%uuid of loop-player%}
  345. add 1 to {win.%uuid of loop-player%}
  346. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  347. wait 6 seconds
  348. loop all players:
  349. if {team.%loop-player%} is set:
  350. close loop-player's inventory
  351. command "clear %loop-player%"
  352. command "kill @e[type=Item]"
  353. give grey dye named "&eゲームに参加する" to loop-player
  354. teleport the loop-player to {lobby}
  355. set rf max hp of loop-player to 20
  356. set health of loop-player to max health of loop-player
  357. set the loop-player's gamemode to adventure
  358. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  359. delete {team.%loop-player%}
  360. command "/fill -43 21 -9 -47 21 -5 air"
  361. command "/fill -11 21 37 -7 21 41 air"
  362. set {button} to true
  363. else:
  364. send "&a試合が終了しました" to loop-player
  365. else if {blue} is 0:
  366. set {button} to false
  367. set {game} to false
  368. disable PvP
  369. loop all players:
  370. if {team.%loop-player%} is "red":
  371. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  372. send "&6&l勝利!" to loop-player
  373. send "&a+10xp" to loop-player
  374. add 10 to {xp.%uuid of loop-player%}
  375. add 1 to {win.%uuid of loop-player%}
  376. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  377. if {team.%loop-player%} is "blue":
  378. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  379. send "&9&l敗北..." to loop-player
  380. send "&a+2xp" to loop-player
  381. add 2 to {xp.%uuid of loop-player%}
  382. add 1 to {lose.%uuid of loop-player%}
  383. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  384. wait 6 seconds
  385. loop all players:
  386. if {team.%loop-player%} is set:
  387. close loop-player's inventory
  388. command "clear %loop-player%"
  389. command "kill @e[type=Item]"
  390. give grey dye named "&eゲームに参加する" to loop-player
  391. teleport the loop-player to {lobby}
  392. set rf max hp of loop-player to 20
  393. set health of loop-player to max health of loop-player
  394. set the loop-player's gamemode to adventure
  395. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  396. delete {team.%loop-player%}
  397. command "/fill -43 21 -9 -47 21 -5 air"
  398. command "/fill -11 21 37 -7 21 41 air"
  399. set {button} to true
  400. else:
  401. send "&a試合が終了しました" to loop-player
  402. else:
  403. loop all players:
  404. if {team.%loop-player%} is "red":
  405. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  406. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  407. if {team.%loop-player%} is "blue":
  408. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  409. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418. on place of obsidian:
  419. if {game} is true:
  420. set {count} to 40
  421. set {putobsidian} to true
  422. loop all players:
  423. if {team.%loop-player%} is "red":
  424. send "&a&l黒曜石が設置された! 40秒間守り切れ!" to loop-player
  425. send loop-player title " " with subtitle "&a黒曜石が設置された! 40秒間守り切れ!" for 3 seconds
  426. if {team.%loop-player%} is "blue":
  427. send "&c&l黒曜石が設置された! 40秒以内に破壊せよ!" to loop-player
  428. send loop-player title " " with subtitle "&c黒曜石が設置された! 40秒以内に破壊せよ!" for 3 seconds
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437. on pick up of leather helmet:
  438. if {game} is true:
  439. if {team.%player%} is set:
  440. cancel event
  441.  
  442. on pick up of wool:
  443. if {game} is true:
  444. if {team.%player%} is set:
  445. cancel event
  446.  
  447. on pick up of obsidian:
  448. if {game} is true:
  449. if {team.%player%} is "blue":
  450. cancel event
  451.  
  452. on pick up of iron horse armor:
  453. if {game} is true:
  454. if {team.%player%} is set:
  455. if player have iron horse armor:
  456. cancel event
  457.  
  458. on pick up of gold horse armor:
  459. if {game} is true:
  460. if {team.%player%} is set:
  461. if player have gold horse armor:
  462. cancel event
  463.  
  464. on pick up of diamond pickaxe:
  465. if {game} is true:
  466. if {team.%player%} is "red":
  467. cancel event
  468. else if player have diamond pickaxe:
  469. cancel event
  470.  
  471. on break of obsidian:
  472. if {game} is true:
  473. set {button} to false
  474. set {game} to false
  475. disable PvP
  476. loop all players:
  477. if {team.%loop-player%} is "red":
  478. send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
  479. send "&9&l敗北..." to loop-player
  480. send "&a+2xp" to loop-player
  481. add 2 to {xp.%uuid of loop-player%}
  482. add 1 to {lose.%uuid of loop-player%}
  483. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  484. if {team.%loop-player%} is "blue":
  485. send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
  486. send "&6&l勝利!" to loop-player
  487. send "&a+10xp" to loop-player
  488. add 10 to {xp.%uuid of loop-player%}
  489. add 1 to {victory.%uuid of loop-player%}
  490. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  491. wait 6 seconds
  492. loop all players:
  493. if {team.%loop-player%} is set:
  494. close loop-player's inventory
  495. command "clear %loop-player%"
  496. command "kill @e[type=Item]"
  497. give grey dye named "&eゲームに参加する" to loop-player
  498. teleport the loop-player to {lobby}
  499. set rf max hp of loop-player to 20
  500. set health of loop-player to max health of loop-player
  501. set the loop-player's gamemode to adventure
  502. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  503. delete {team.%loop-player%}
  504. command "/fill -43 21 -9 -47 21 -5 air"
  505. command "/fill -11 21 37 -7 21 41 air"
  506. set {button} to true
  507. else:
  508. send "&a試合が終了しました" to loop-player
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517. every a second in "world":
  518. if {game} is true:
  519. remove 1 from {count}
  520. if {count} < 0:
  521. set {button} to false
  522. set {game} to false
  523. disable PvP
  524. if {putobsidian} is true:
  525. loop all players:
  526. if {team.%loop-player%} is "red":
  527. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  528. send "&6&l勝利!" to loop-player
  529. send "&a+10xp" to loop-player
  530. add 10 to {xp.%uuid of loop-player%}
  531. add 1 to {win.%uuid of loop-player%}
  532. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  533. if {team.%loop-player%} is "blue":
  534. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  535. send "&9&l敗北..." to loop-player
  536. send "&a+2xp" to loop-player
  537. add 2 to {xp.%uuid of loop-player%}
  538. add 1 to {lose.%uuid of loop-player%}
  539. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  540. wait 6 seconds
  541. loop all players:
  542. if {team.%loop-player%} is set:
  543. close loop-player's inventory
  544. command "clear %loop-player%"
  545. command "kill @e[type=Item]"
  546. give grey dye named "&eゲームに参加する" to loop-player
  547. command "/tp %loop-player% %{cmdlobby}%"
  548. set rf max hp of loop-player to 20
  549. set health of loop-player to max health of loop-player
  550. set the loop-player's gamemode to adventure
  551. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  552. delete {team.%loop-player%}
  553. command "/fill -43 21 -9 -47 21 -5 air"
  554. command "/fill -11 21 37 -7 21 41 air"
  555. set {button} to true
  556. else:
  557. send "&a試合が終了しました" to loop-player
  558. else:
  559. loop all players:
  560. if {team.%loop-player%} is "red":
  561. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  562. send "&9&l敗北..." to loop-player
  563. send "&a+2xp" to loop-player
  564. add 2 to {xp.%uuid of loop-player%}
  565. add 1 to {lose.%uuid of loop-player%}
  566. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  567. if {team.%loop-player%} is "blue":
  568. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  569. send "&6&l勝利!" to loop-player
  570. send "&a+10xp" to loop-player
  571. add 10 to {xp.%uuid of loop-player%}
  572. add 1 to {win.%uuid of loop-player%}
  573. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  574. wait 6 seconds
  575. loop all players:
  576. if {team.%loop-player%} is set:
  577. close loop-player's inventory
  578. command "clear %loop-player%"
  579. command "kill @e[type=Item]"
  580. give grey dye named "&eゲームに参加する" to loop-player
  581. command "/tp %loop-player% %{cmdlobby}%"
  582. set rf max hp of loop-player to 20
  583. set health of loop-player to max health of loop-player
  584. set the loop-player's gamemode to adventure
  585. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%{prefix.%uuid of loop-player%}%&r%loop-player%&r%{suffix.%uuid of loop-player%}%"
  586. delete {team.%loop-player%}
  587. command "/fill -43 21 -9 -47 21 -5 air"
  588. command "/fill -11 21 37 -7 21 41 air"
  589. set {button} to true
  590. else:
  591. send "&a試合が終了しました" to loop-player
  592. loop all players:
  593. if {team.%loop-player%} is set:
  594. set action bar of loop-player to "&f(残り時間: %{count}%秒)"
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603. command /stats [<offline player>]:
  604. trigger:
  605. if arg 1 is not set:
  606. send "&6-----< &b%player% &6>-----"
  607. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  608. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  609. send " &alevel: &e%{level.%uuid of player%}%" to player
  610. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  611. send " "
  612. send " &akill: &e%{kill.%uuid of player%}%" to player
  613. send " &adeath: &e%{death.%uuid of player%}%" to player
  614. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  615. send " &awin: &e%{win.%uuid of player%}%" to player
  616. send " &alose: &e%{lose.%uuid of player%}%" to player
  617. send " &aW/L: &e%{winlose.%uuid of player%}%" to player
  618. else:
  619. send "&6-----< &b%arg 1% &6>-----"
  620. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  621. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  622. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  623. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  624. send " "
  625. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  626. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  627. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  628. send " &awin: &e%{win.%uuid of arg 1%}%" to player
  629. send " &alose: &e%{lose.%uuid of arg 1%}%" to player
  630. send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  631.  
  632. on first join:
  633. set {kill.%uuid of player%} to 0
  634. set {death.%uuid of player%} to 0
  635. set {killdeath.%uuid of player%} to 0
  636. set {win.%uuid of player%} to 0
  637. set {lose.%uuid of player%} to 0
  638. set {winlose.%uuid of player%} to 0
  639. set {level.%uuid of player%} to 1
  640. set {xp.%uuid of player%} to 0
  641. set {needxp.%uuid of player%} to 10
  642.  
  643. on any movement:
  644. if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
  645. set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
  646. add 1 to {level.%uuid of player%}
  647. set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
  648. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
  649. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  650. set tab header to "&7-- &d&lTeamGunPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  651.  
  652. on join:
  653. wait 3 ticks
  654. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  655. set tab header to "&7-- &d&lTeamGunPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  656. command "/clear %player%"
  657. give grey dye named "&eゲームに参加する" to player
  658. command "/tp %player% %{cmdlobby}%"
  659. set rf max hp of player to 20
  660. set health of player to max health of player
  661. command "/gamemode 2 %player%"
  662. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  663. send " &f&lTeamGunPvP" to player
  664. send " " to player
  665. send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
  666. send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
  667. send " &e&lそれを壊されないよう守る必要があります。" to player
  668. send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
  669. send " &e&lもし置かれても、破壊が可能です。" to player
  670. send " " to player
  671. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  672.  
  673. on chat:
  674. cancel event
  675. if {mutelist::*} contains player:
  676. send "&cあなたはミュートされているため、発言することができません。" to player
  677. stop
  678. else if {spam.%player's UUID%} is "%message%":
  679. send "&6-----------------------------" to player
  680. send "&c&l同じメッセージを送信できません" to player
  681. send "&6-----------------------------" to player
  682. stop
  683. else if {team.%player%} is set:
  684. set {spam.%player's UUID%} to "%message%"
  685. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{teamchat.%player%}%%player%&e》&r%message%"
  686. else:
  687. set {spam.%player's UUID%} to "%message%"
  688. broadcast "&7[Lv%{level.%uuid of player%}%]&r%player%&e》&r%message%"
  689.  
  690. command /chat <text> <offline player> <text>:
  691. permission: skript.admin
  692. usage: /chat <mute|unmute> <player> <text>
  693. trigger:
  694. if arg 1 is "mute":
  695. if {mutelist::*} contains arg 2:
  696. send "&c%arg 2%さんはすでにミュートされています。"
  697. stop
  698. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  699. send "&e理由:%coloured arg 3%" to ops
  700. add arg 2 to {mutelist::*}
  701. stop
  702. if arg 1 is "unmute":
  703. if {mutelist::*} contains arg 2:
  704. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  705. send "&a理由:%coloured arg 3%" to ops
  706. remove arg 2 from {mutelist::*}
  707. stop
  708. send "&c%arg 2%さんはミュートされていません。"
  709. stop
  710.  
  711. command /mutelist [<offline player>]:
  712. permission: skript.admin
  713. trigger:
  714. if arg 1 is not set:
  715. send "&d次のプレイヤーがミュートされています:"
  716. send "%{mutelist::*}%"
  717. stop
  718. if {mutelist::*} contains arg 1:
  719. send "&d対象のプレイヤーはミュートされています。"
  720. stop
  721. send "&b対象のプレイヤーはミュートされていません。"
  722.  
  723. on click:
  724. if player is holding lime dye named "&cゲームを抜ける":
  725. remove lime dye named "&cゲームを抜ける" from player
  726. set {join.%player%} to false
  727. send "&cゲームを抜けました"
  728. wait 5 ticks
  729. give grey dye named "&eゲームに参加する" to player
  730.  
  731. on click:
  732. if player is holding grey dye named "&eゲームに参加する":
  733. remove grey dye named "&eゲームに参加する" from player
  734. set {join.%player%} to true
  735. send "&eゲームに参加しました" to player
  736. wait 5 ticks
  737. give lime dye named "&cゲームを抜ける" to player
  738.  
  739. on hunger bar change:
  740. set the player's food level to 10
  741.  
  742. on inventory click:
  743. if {game} is true:
  744. if {team.%player%} is set:
  745. if clicked slot is 39:
  746. cancel event
  747.  
  748. command /pd delete [<offline player>]:
  749. permission: skript.admin
  750. trigger:
  751. set {kill.%uuid of arg 1%} to 0
  752. set {death.%uuid of arg 1%} to 0
  753. set {killdeath.%uuid of arg 1%} to 0
  754. set {win.%uuid of arg 1%} to 0
  755. set {lose.%uuid of arg 1%} to 0
  756. set {winlose.%uuid of arg 1%} to 0
  757. set {level.%uuid of arg 1%} to 1
  758. set {xp.%uuid of arg 1%} to 0
  759. set {needxp.%uuid of arg 1%} to 10
  760. set {prefix.%uuid of arg 1%} to ""
  761. set {suffix.%uuid of arg 1%} to ""
  762.  
  763. command /dye:
  764. permission: skript.admin
  765. trigger:
  766. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement