taktie0304

Untitled

Jul 24th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.32 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%}%]&c%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%}%]&9%loop-player%"
  129. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を破壊せよ" for 5 seconds
  130. delete {join.%loop-player%}
  131. set {a} to 0
  132. set {game} to true
  133. broadcast "&c赤%{red}%人&a &9青%{blue}%人 &a参加中"
  134. wait 1 tick
  135. enable PvP
  136. set {start} to false
  137. set {button} to true
  138. else:
  139. send "&c現在試合中です" to player
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148. on damage of player:
  149. if {game} is true:
  150. if {team.%attacker%} == {team.%victim%}:
  151. cancel event
  152.  
  153. on death of player:
  154. if name of attacker's held item contains "USP":
  155. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aUSP&7]--> %{teamchat.%victim%}%%victim%"
  156. else if name of attacker's held item contains "Glock-18":
  157. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aGlock-18&7]--> %{teamchat.%victim%}%%victim%"
  158. else if name of attacker's held item contains "AK-47":
  159. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aAK-47&7]--> %{teamchat.%victim%}%%victim%"
  160. else if name of attacker's held item contains "M4A4":
  161. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&aM4A4&7]--> %{teamchat.%victim%}%%victim%"
  162. else if name of attacker's held item contains "AWP":
  163. set the death message to "%{teamchat.%attacker%}%%attacker% &7--[&5AWP&7]--> %{teamchat.%victim%}%%victim%"
  164. if {game} is true:
  165. set {died.%player%} to true
  166. set {DeathPoint.%player%} to location of player
  167. force the player to respawn
  168. teleport player to {DeathPoint.%player%}
  169. set the player's gamemode to spectator
  170. remove 1 from {%{team.%victim%}%}
  171. add 1 to {kill.%uuid of attacker%}
  172. add 1 to {death.%uuid of victim%}
  173. add 3 to {xp.%uuid of attacker%}
  174. add 30 to {coin.%uuid of attacker%}
  175. send "&a+3xp &6+30coins" 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 &6+100coins" to loop-player
  195. add 100 to {coin.%uuid of loop-player%}
  196. add 10 to {xp.%uuid of loop-player%}
  197. add 1 to {win.%uuid of loop-player%}
  198. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  199. if {team.%loop-player%} is "blue":
  200. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  201. send "&9&l敗北..." to loop-player
  202. send "&a+2xp" to loop-player
  203. add 2 to {xp.%uuid of loop-player%}
  204. add 1 to {lose.%uuid of loop-player%}
  205. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  206. wait 6 seconds
  207. loop all players:
  208. if {team.%loop-player%} is set:
  209. close loop-player's inventory
  210. command "clear %loop-player%"
  211. command "kill @e[type=Item]"
  212. give grey dye named "&eゲームに参加する" to loop-player
  213. teleport the loop-player to {lobby}
  214. set rf max hp of loop-player to 20
  215. set health of loop-player to max health of loop-player
  216. set the loop-player's gamemode to adventure
  217. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  218. delete {team.%loop-player%}
  219. command "/fill -43 21 -9 -47 21 -5 air"
  220. command "/fill -11 21 37 -7 21 41 air"
  221. set {button} to true
  222. else:
  223. send "&a試合が終了しました" to loop-player
  224. else:
  225. loop all players:
  226. if {team.%loop-player%} is "red":
  227. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  228. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  229. if {team.%loop-player%} is "blue":
  230. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  231. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  232. else if {red} is 0:
  233. set {button} to false
  234. set {game} to false
  235. disable PvP
  236. loop all players:
  237. if {team.%loop-player%} is "red":
  238. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  239. send "&9&l敗北..." to loop-player
  240. send "&a+2xp" to loop-player
  241. add 2 to {xp.%uuid of loop-player%}
  242. add 1 to {lose.%uuid of loop-player%}
  243. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  244. if {team.%loop-player%} is "blue":
  245. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  246. send "&6&l勝利!" to loop-player
  247. send "&a+10xp &6+100coins" to loop-player
  248. add 100 to {coin.%uuid of loop-player%}
  249. add 10 to {xp.%uuid of loop-player%}
  250. add 1 to {win.%uuid of loop-player%}
  251. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  252. wait 6 seconds
  253. loop all players:
  254. if {team.%loop-player%} is set:
  255. close loop-player's inventory
  256. command "clear %loop-player%"
  257. command "kill @e[type=Item]"
  258. give grey dye named "&eゲームに参加する" to loop-player
  259. teleport the loop-player to {lobby}
  260. set rf max hp of loop-player to 20
  261. set health of loop-player to max health of loop-player
  262. set the loop-player's gamemode to adventure
  263. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  264. delete {team.%loop-player%}
  265. command "/fill -43 21 -9 -47 21 -5 air"
  266. command "/fill -11 21 37 -7 21 41 air"
  267. set {button} to true
  268. else:
  269. send "&a試合が終了しました" to loop-player
  270. else if {blue} is 0:
  271. set {button} to false
  272. set {game} to false
  273. disable PvP
  274. loop all players:
  275. if {team.%loop-player%} is "red":
  276. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  277. send "&6&l勝利!" to loop-player
  278. send "&a+10xp &6+100coins" to loop-player
  279. add 100 to {coin.%uuid of loop-player%}
  280. add 10 to {xp.%uuid of loop-player%}
  281. add 1 to {win.%uuid of loop-player%}
  282. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  283. if {team.%loop-player%} is "blue":
  284. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  285. send "&9&l敗北..." to loop-player
  286. send "&a+2xp" to loop-player
  287. add 2 to {xp.%uuid of loop-player%}
  288. add 1 to {lose.%uuid of loop-player%}
  289. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  290. wait 6 seconds
  291. loop all players:
  292. if {team.%loop-player%} is set:
  293. close loop-player's inventory
  294. command "clear %loop-player%"
  295. command "kill @e[type=Item]"
  296. give grey dye named "&eゲームに参加する" to loop-player
  297. teleport the loop-player to {lobby}
  298. set rf max hp of loop-player to 20
  299. set health of loop-player to max health of loop-player
  300. set the loop-player's gamemode to adventure
  301. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  302. delete {team.%loop-player%}
  303. command "/fill -43 21 -9 -47 21 -5 air"
  304. command "/fill -11 21 37 -7 21 41 air"
  305. set {button} to true
  306. else:
  307. send "&a試合が終了しました" to loop-player
  308. else:
  309. loop all players:
  310. if {team.%loop-player%} is "red":
  311. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  312. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  313. if {team.%loop-player%} is "blue":
  314. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  315. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324. on quit:
  325. if {team.%player%} is set:
  326. delete {team.%player%}
  327. delete {teamchat.%player%}
  328. if {died.%player%} is false:
  329. remove 1 from {%{team.%player%}%}
  330. command "/scoreboard teams leave %{team.%player%}% %player%"
  331. if {red} is 0:
  332. set {button} to false
  333. set {game} to false
  334. disable PvP
  335. loop all players:
  336. if {team.%loop-player%} is "red":
  337. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  338. send "&9&l敗北..." to loop-player
  339. send "&a+2xp" to loop-player
  340. add 2 to {xp.%uuid of loop-player%}
  341. add 1 to {lose.%uuid of loop-player%}
  342. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  343. if {team.%loop-player%} is "blue":
  344. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  345. send "&6&l勝利!" to loop-player
  346. send "&a+10xp &6+100coins" to loop-player
  347. add 100 to {coin.%uuid of loop-player%}
  348. add 10 to {xp.%uuid of loop-player%}
  349. add 1 to {win.%uuid of loop-player%}
  350. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  351. wait 6 seconds
  352. loop all players:
  353. if {team.%loop-player%} is set:
  354. close loop-player's inventory
  355. command "clear %loop-player%"
  356. command "kill @e[type=Item]"
  357. give grey dye named "&eゲームに参加する" to loop-player
  358. teleport the loop-player to {lobby}
  359. set rf max hp of loop-player to 20
  360. set health of loop-player to max health of loop-player
  361. set the loop-player's gamemode to adventure
  362. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  363. delete {team.%loop-player%}
  364. command "/fill -43 21 -9 -47 21 -5 air"
  365. command "/fill -11 21 37 -7 21 41 air"
  366. set {button} to true
  367. else:
  368. send "&a試合が終了しました" to loop-player
  369. else if {blue} is 0:
  370. set {button} to false
  371. set {game} to false
  372. disable PvP
  373. loop all players:
  374. if {team.%loop-player%} is "red":
  375. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  376. send "&6&l勝利!" to loop-player
  377. send "&a+10xp &6+100coins" to loop-player
  378. add 100 to {coin.%uuid of loop-player%}
  379. add 10 to {xp.%uuid of loop-player%}
  380. add 1 to {win.%uuid of loop-player%}
  381. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  382. if {team.%loop-player%} is "blue":
  383. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  384. send "&9&l敗北..." to loop-player
  385. send "&a+2xp" to loop-player
  386. add 2 to {xp.%uuid of loop-player%}
  387. add 1 to {lose.%uuid of loop-player%}
  388. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  389. wait 6 seconds
  390. loop all players:
  391. if {team.%loop-player%} is set:
  392. close loop-player's inventory
  393. command "clear %loop-player%"
  394. command "kill @e[type=Item]"
  395. give grey dye named "&eゲームに参加する" to loop-player
  396. teleport the loop-player to {lobby}
  397. set rf max hp of loop-player to 20
  398. set health of loop-player to max health of loop-player
  399. set the loop-player's gamemode to adventure
  400. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  401. delete {team.%loop-player%}
  402. command "/fill -43 21 -9 -47 21 -5 air"
  403. command "/fill -11 21 37 -7 21 41 air"
  404. set {button} to true
  405. else:
  406. send "&a試合が終了しました" to loop-player
  407. else:
  408. loop all players:
  409. if {team.%loop-player%} is "red":
  410. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  411. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  412. if {team.%loop-player%} is "blue":
  413. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  414. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423. on place of obsidian:
  424. if {game} is true:
  425. set {count} to 40
  426. set {putobsidian} to true
  427. loop all players:
  428. if {team.%loop-player%} is "red":
  429. send "&a&l黒曜石が設置された! 40秒間守り切れ!" to loop-player
  430. send loop-player title " " with subtitle "&a黒曜石が設置された! 40秒間守り切れ!" for 3 seconds
  431. if {team.%loop-player%} is "blue":
  432. send "&c&l黒曜石が設置された! 40秒以内に破壊せよ!" to loop-player
  433. send loop-player title " " with subtitle "&c黒曜石が設置された! 40秒以内に破壊せよ!" for 3 seconds
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442. on pick up of leather helmet:
  443. if {team.%player%} is set:
  444. cancel event
  445.  
  446. on pick up of wool:
  447. if {team.%player%} is set:
  448. cancel event
  449.  
  450. on pick up of obsidian:
  451. if {team.%player%} is "blue":
  452. cancel event
  453.  
  454. on pick up of iron horse armor:
  455. if {team.%player%} is set:
  456. if player have iron horse armor:
  457. cancel event
  458.  
  459. on pick up of gold horse armor:
  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 {team.%player%} is "red":
  466. cancel event
  467. else if player have diamond pickaxe:
  468. cancel event
  469.  
  470. on break of obsidian:
  471. if {game} is true:
  472. set {button} to false
  473. set {game} to false
  474. disable PvP
  475. loop all players:
  476. if {team.%loop-player%} is "red":
  477. send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
  478. send "&9&l敗北..." to loop-player
  479. send "&a+2xp" to loop-player
  480. add 2 to {xp.%uuid of loop-player%}
  481. add 1 to {lose.%uuid of loop-player%}
  482. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  483. if {team.%loop-player%} is "blue":
  484. send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
  485. send "&6&l勝利!" to loop-player
  486. send "&a+10xp &6+100coins" to loop-player
  487. add 100 to {coin.%uuid of 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%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 &6+100coins" to loop-player
  530. add 100 to {coin.%uuid of loop-player%}
  531. add 10 to {xp.%uuid of loop-player%}
  532. add 1 to {win.%uuid of loop-player%}
  533. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  534. if {team.%loop-player%} is "blue":
  535. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  536. send "&9&l敗北..." to loop-player
  537. send "&a+2xp" to loop-player
  538. add 2 to {xp.%uuid of loop-player%}
  539. add 1 to {lose.%uuid of loop-player%}
  540. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  541. wait 6 seconds
  542. loop all players:
  543. if {team.%loop-player%} is set:
  544. close loop-player's inventory
  545. command "clear %loop-player%"
  546. command "kill @e[type=Item]"
  547. give grey dye named "&eゲームに参加する" to loop-player
  548. command "/tp %loop-player% %{cmdlobby}%"
  549. set rf max hp of loop-player to 20
  550. set health of loop-player to max health of loop-player
  551. set the loop-player's gamemode to adventure
  552. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  553. delete {team.%loop-player%}
  554. command "/fill -43 21 -9 -47 21 -5 air"
  555. command "/fill -11 21 37 -7 21 41 air"
  556. set {button} to true
  557. else:
  558. send "&a試合が終了しました" to loop-player
  559. else:
  560. loop all players:
  561. if {team.%loop-player%} is "red":
  562. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  563. send "&9&l敗北..." to loop-player
  564. send "&a+2xp" to loop-player
  565. add 2 to {xp.%uuid of loop-player%}
  566. add 1 to {lose.%uuid of loop-player%}
  567. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  568. if {team.%loop-player%} is "blue":
  569. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  570. send "&6&l勝利!" to loop-player
  571. send "&a+10xp &6+100coins" to loop-player
  572. add 100 to {coin.%uuid of loop-player%}
  573. add 10 to {xp.%uuid of loop-player%}
  574. add 1 to {win.%uuid of loop-player%}
  575. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  576. wait 6 seconds
  577. loop all players:
  578. if {team.%loop-player%} is set:
  579. close loop-player's inventory
  580. command "clear %loop-player%"
  581. command "kill @e[type=Item]"
  582. give grey dye named "&eゲームに参加する" to loop-player
  583. command "/tp %loop-player% %{cmdlobby}%"
  584. set rf max hp of loop-player to 20
  585. set health of loop-player to max health of loop-player
  586. set the loop-player's gamemode to adventure
  587. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  588. delete {team.%loop-player%}
  589. command "/fill -43 21 -9 -47 21 -5 air"
  590. command "/fill -11 21 37 -7 21 41 air"
  591. set {button} to true
  592. else:
  593. send "&a試合が終了しました" to loop-player
  594. loop all players:
  595. if {team.%loop-player%} is set:
  596. set action bar of loop-player to "&f(残り時間: %{count}%秒)"
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605. command /stats [<offline player>]:
  606. trigger:
  607. if arg 1 is not set:
  608. send "&6-----< &b%player% &6>-----"
  609. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  610. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  611. send " &alevel: &e%{level.%uuid of player%}%" to player
  612. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  613. send " "
  614. send " &akill: &e%{kill.%uuid of player%}%" to player
  615. send " &adeath: &e%{death.%uuid of player%}%" to player
  616. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  617. send " &awin: &e%{win.%uuid of player%}%" to player
  618. send " &alose: &e%{lose.%uuid of player%}%" to player
  619. send " &aW/L: &e%{winlose.%uuid of player%}%" to player
  620. else:
  621. send "&6-----< &b%arg 1% &6>-----"
  622. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  623. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  624. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  625. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  626. send " "
  627. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  628. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  629. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  630. send " &awin: &e%{win.%uuid of arg 1%}%" to player
  631. send " &alose: &e%{lose.%uuid of arg 1%}%" to player
  632. send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  633.  
  634. on first join:
  635. set {kill.%uuid of player%} to 0
  636. set {death.%uuid of player%} to 0
  637. set {killdeath.%uuid of player%} to 0
  638. set {win.%uuid of player%} to 0
  639. set {lose.%uuid of player%} to 0
  640. set {winlose.%uuid of player%} to 0
  641. set {level.%uuid of player%} to 1
  642. set {xp.%uuid of player%} to 0
  643. set {needxp.%uuid of player%} to 10
  644.  
  645. on any movement:
  646. if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
  647. set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
  648. add 1 to {level.%uuid of player%}
  649. set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
  650. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
  651. 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%}%"
  652. set tab header to "&7-- &d&lTeamGunPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  653.  
  654. on join:
  655. wait 3 ticks
  656. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%player%"
  657. set tab header to "&7-- &d&lTeamGunPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  658. command "/gamemode 2 %player%"
  659. command "/clear %player%"
  660. give grey dye named "&eゲームに参加する" to player
  661. command "/tp %player% %{cmdlobby}%"
  662. set health of player to max health of player
  663. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  664. send " &f&lTeamGunPvP" to player
  665. send " " 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 " &e&lもし置かれても、破壊が可能です。" to player
  671. send " " to player
  672. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  673.  
  674. on chat:
  675. cancel event
  676. if {mutelist::*} contains player:
  677. send "&cあなたはミュートされているため、発言することができません。" to player
  678. stop
  679. else if {spam.%player's UUID%} is "%message%":
  680. send "&6---------------------------" to player
  681. send "&c&l同じメッセージを送信できません" to player
  682. send "&6---------------------------" to player
  683. stop
  684. else if {team.%player%} is set:
  685. set {spam.%player's UUID%} to "%message%"
  686. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{teamchat.%player%}%%player%&e》&r%message%"
  687. else:
  688. set {spam.%player's UUID%} to "%message%"
  689. broadcast "&7[Lv%{level.%uuid of player%}%]&r%player%&e》&r%message%"
  690.  
  691. command /chat <text> <offline player> <text>:
  692. permission: skript.admin
  693. usage: /chat <mute|unmute> <player> <text>
  694. trigger:
  695. if arg 1 is "mute":
  696. if {mutelist::*} contains arg 2:
  697. send "&c%arg 2%さんはすでにミュートされています。"
  698. stop
  699. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  700. send "&e理由:%coloured arg 3%" to ops
  701. add arg 2 to {mutelist::*}
  702. stop
  703. if arg 1 is "unmute":
  704. if {mutelist::*} contains arg 2:
  705. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  706. send "&a理由:%coloured arg 3%" to ops
  707. remove arg 2 from {mutelist::*}
  708. stop
  709. send "&c%arg 2%さんはミュートされていません。"
  710. stop
  711.  
  712. command /mutelist [<offline player>]:
  713. permission: skript.admin
  714. trigger:
  715. if arg 1 is not set:
  716. send "&d次のプレイヤーがミュートされています:"
  717. send "%{mutelist::*}%"
  718. stop
  719. if {mutelist::*} contains arg 1:
  720. send "&d対象のプレイヤーはミュートされています。"
  721. stop
  722. send "&b対象のプレイヤーはミュートされていません。"
  723.  
  724. on click:
  725. if player is holding lime dye named "&cゲームを抜ける":
  726. remove lime dye named "&cゲームを抜ける" from player
  727. set {join.%player%} to false
  728. send "&cゲームを抜けました"
  729. wait 5 ticks
  730. give grey dye named "&eゲームに参加する" to player
  731.  
  732. on click:
  733. if player is holding grey dye named "&eゲームに参加する":
  734. remove grey dye named "&eゲームに参加する" from player
  735. set {join.%player%} to true
  736. send "&eゲームに参加しました" to player
  737. wait 5 ticks
  738. give lime dye named "&cゲームを抜ける" to player
  739.  
  740. on hunger bar change:
  741. set the player's food level to 10
  742.  
  743. on inventory click:
  744. if {game} is true:
  745. if {team.%player%} is set:
  746. if clicked slot is 39:
  747. cancel event
  748.  
  749. command /pd delete [<offline player>]:
  750. permission: skript.admin
  751. trigger:
  752. set {kill.%uuid of arg 1%} to 0
  753. set {death.%uuid of arg 1%} to 0
  754. set {killdeath.%uuid of arg 1%} to 0
  755. set {win.%uuid of arg 1%} to 0
  756. set {lose.%uuid of arg 1%} to 0
  757. set {winlose.%uuid of arg 1%} to 0
  758. set {level.%uuid of arg 1%} to 1
  759. set {xp.%uuid of arg 1%} to 0
  760. set {needxp.%uuid of arg 1%} to 10
  761.  
  762. command /dye:
  763. permission: skript.admin
  764. trigger:
  765. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment