Advertisement
taktie0304

Untitled

Jul 24th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.53 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 {game} is true:
  444. if {team.%player%} is set:
  445. cancel event
  446.  
  447. on pick up of wool:
  448. if {game} is true:
  449. if {team.%player%} is set:
  450. cancel event
  451.  
  452. on pick up of obsidian:
  453. if {game} is true:
  454. if {team.%player%} is "blue":
  455. cancel event
  456.  
  457. on pick up of iron horse armor:
  458. if {game} is true:
  459. if {team.%player%} is set:
  460. if player have iron horse armor:
  461. cancel event
  462.  
  463. on pick up of gold horse armor:
  464. if {game} is true:
  465. if {team.%player%} is set:
  466. if player have gold horse armor:
  467. cancel event
  468.  
  469. on pick up of diamond pickaxe:
  470. if {game} is true:
  471. if {team.%player%} is "red":
  472. cancel event
  473. else if player have diamond pickaxe:
  474. cancel event
  475.  
  476. on break of obsidian:
  477. if {game} is true:
  478. set {button} to false
  479. set {game} to false
  480. disable PvP
  481. loop all players:
  482. if {team.%loop-player%} is "red":
  483. send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
  484. send "&9&l敗北..." to loop-player
  485. send "&a+2xp" to loop-player
  486. add 2 to {xp.%uuid of loop-player%}
  487. add 1 to {lose.%uuid of loop-player%}
  488. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  489. if {team.%loop-player%} is "blue":
  490. send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
  491. send "&6&l勝利!" to loop-player
  492. send "&a+10xp &6+100coins" to loop-player
  493. add 100 to {coin.%uuid of loop-player%}
  494. add 10 to {xp.%uuid of loop-player%}
  495. add 1 to {victory.%uuid of loop-player%}
  496. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  497. wait 6 seconds
  498. loop all players:
  499. if {team.%loop-player%} is set:
  500. close loop-player's inventory
  501. command "clear %loop-player%"
  502. command "kill @e[type=Item]"
  503. give grey dye named "&eゲームに参加する" to loop-player
  504. teleport the loop-player to {lobby}
  505. set rf max hp of loop-player to 20
  506. set health of loop-player to max health of loop-player
  507. set the loop-player's gamemode to adventure
  508. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  509. delete {team.%loop-player%}
  510. command "/fill -43 21 -9 -47 21 -5 air"
  511. command "/fill -11 21 37 -7 21 41 air"
  512. set {button} to true
  513. else:
  514. send "&a試合が終了しました" to loop-player
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523. every a second in "world":
  524. if {game} is true:
  525. remove 1 from {count}
  526. if {count} < 0:
  527. set {button} to false
  528. set {game} to false
  529. disable PvP
  530. if {putobsidian} is true:
  531. loop all players:
  532. if {team.%loop-player%} is "red":
  533. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  534. send "&6&l勝利!" to loop-player
  535. send "&a+10xp &6+100coins" to loop-player
  536. add 100 to {coin.%uuid of loop-player%}
  537. add 10 to {xp.%uuid of loop-player%}
  538. add 1 to {win.%uuid of loop-player%}
  539. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  540. if {team.%loop-player%} is "blue":
  541. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  542. send "&9&l敗北..." to loop-player
  543. send "&a+2xp" to loop-player
  544. add 2 to {xp.%uuid of loop-player%}
  545. add 1 to {lose.%uuid of loop-player%}
  546. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  547. wait 6 seconds
  548. loop all players:
  549. if {team.%loop-player%} is set:
  550. close loop-player's inventory
  551. command "clear %loop-player%"
  552. command "kill @e[type=Item]"
  553. give grey dye named "&eゲームに参加する" to loop-player
  554. command "/tp %loop-player% %{cmdlobby}%"
  555. set rf max hp of loop-player to 20
  556. set health of loop-player to max health of loop-player
  557. set the loop-player's gamemode to adventure
  558. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  559. delete {team.%loop-player%}
  560. command "/fill -43 21 -9 -47 21 -5 air"
  561. command "/fill -11 21 37 -7 21 41 air"
  562. set {button} to true
  563. else:
  564. send "&a試合が終了しました" to loop-player
  565. else:
  566. loop all players:
  567. if {team.%loop-player%} is "red":
  568. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  569. send "&9&l敗北..." to loop-player
  570. send "&a+2xp" to loop-player
  571. add 2 to {xp.%uuid of loop-player%}
  572. add 1 to {lose.%uuid of loop-player%}
  573. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  574. if {team.%loop-player%} is "blue":
  575. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  576. send "&6&l勝利!" to loop-player
  577. send "&a+10xp &6+100coins" to loop-player
  578. add 100 to {coin.%uuid of loop-player%}
  579. add 10 to {xp.%uuid of loop-player%}
  580. add 1 to {win.%uuid of loop-player%}
  581. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  582. wait 6 seconds
  583. loop all players:
  584. if {team.%loop-player%} is set:
  585. close loop-player's inventory
  586. command "clear %loop-player%"
  587. command "kill @e[type=Item]"
  588. give grey dye named "&eゲームに参加する" to loop-player
  589. command "/tp %loop-player% %{cmdlobby}%"
  590. set rf max hp of loop-player to 20
  591. set health of loop-player to max health of loop-player
  592. set the loop-player's gamemode to adventure
  593. set the loop-player's tablist name to "&7[Lv%{level.%uuid of loop-player%}%]&r%loop-player%"
  594. delete {team.%loop-player%}
  595. command "/fill -43 21 -9 -47 21 -5 air"
  596. command "/fill -11 21 37 -7 21 41 air"
  597. set {button} to true
  598. else:
  599. send "&a試合が終了しました" to loop-player
  600. loop all players:
  601. if {team.%loop-player%} is set:
  602. set action bar of loop-player to "&f(残り時間: %{count}%秒)"
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611. command /stats [<offline player>]:
  612. trigger:
  613. if arg 1 is not set:
  614. send "&6-----< &b%player% &6>-----"
  615. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  616. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  617. send " &alevel: &e%{level.%uuid of player%}%" to player
  618. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  619. send " "
  620. send " &akill: &e%{kill.%uuid of player%}%" to player
  621. send " &adeath: &e%{death.%uuid of player%}%" to player
  622. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  623. send " &awin: &e%{win.%uuid of player%}%" to player
  624. send " &alose: &e%{lose.%uuid of player%}%" to player
  625. send " &aW/L: &e%{winlose.%uuid of player%}%" to player
  626. else:
  627. send "&6-----< &b%arg 1% &6>-----"
  628. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  629. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  630. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  631. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  632. send " "
  633. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  634. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  635. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  636. send " &awin: &e%{win.%uuid of arg 1%}%" to player
  637. send " &alose: &e%{lose.%uuid of arg 1%}%" to player
  638. send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  639.  
  640. on first join:
  641. set {kill.%uuid of player%} to 0
  642. set {death.%uuid of player%} to 0
  643. set {killdeath.%uuid of player%} to 0
  644. set {win.%uuid of player%} to 0
  645. set {lose.%uuid of player%} to 0
  646. set {winlose.%uuid of player%} to 0
  647. set {level.%uuid of player%} to 1
  648. set {xp.%uuid of player%} to 0
  649. set {needxp.%uuid of player%} to 10
  650.  
  651. on any movement:
  652. if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
  653. set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
  654. add 1 to {level.%uuid of player%}
  655. set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
  656. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
  657. 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%}%"
  658. set tab header to "&7-- &d&lTeamGunPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  659.  
  660. on join:
  661. wait 3 ticks
  662. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%player%"
  663. set tab header to "&7-- &d&lTeamGunPvP &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  664. command "/gamemode 2 %player%"
  665. command "/clear %player%"
  666. give grey dye named "&eゲームに参加する" to player
  667. command "/tp %player% %{cmdlobby}%"
  668. set health of player to max health of player
  669. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  670. send " &f&lTeamGunPvP" to player
  671. send " " to player
  672. send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
  673. send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
  674. send " &e&lそれを壊されないよう守る必要があります。" to player
  675. send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
  676. send " &e&lもし置かれても、破壊が可能です。" to player
  677. send " " to player
  678. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  679.  
  680. on chat:
  681. cancel event
  682. if {mutelist::*} contains player:
  683. send "&cあなたはミュートされているため、発言することができません。" to player
  684. stop
  685. else if {spam.%player's UUID%} is "%message%":
  686. send "&6---------------------------" to player
  687. send "&c&l同じメッセージを送信できません" to player
  688. send "&6---------------------------" to player
  689. stop
  690. else if {team.%player%} is set:
  691. set {spam.%player's UUID%} to "%message%"
  692. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{teamchat.%player%}%%player%&e》&r%message%"
  693. else:
  694. set {spam.%player's UUID%} to "%message%"
  695. broadcast "&7[Lv%{level.%uuid of player%}%]&r%player%&e》&r%message%"
  696.  
  697. command /chat <text> <offline player> <text>:
  698. permission: skript.admin
  699. usage: /chat <mute|unmute> <player> <text>
  700. trigger:
  701. if arg 1 is "mute":
  702. if {mutelist::*} contains arg 2:
  703. send "&c%arg 2%さんはすでにミュートされています。"
  704. stop
  705. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  706. send "&e理由:%coloured arg 3%" to ops
  707. add arg 2 to {mutelist::*}
  708. stop
  709. if arg 1 is "unmute":
  710. if {mutelist::*} contains arg 2:
  711. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  712. send "&a理由:%coloured arg 3%" to ops
  713. remove arg 2 from {mutelist::*}
  714. stop
  715. send "&c%arg 2%さんはミュートされていません。"
  716. stop
  717.  
  718. command /mutelist [<offline player>]:
  719. permission: skript.admin
  720. trigger:
  721. if arg 1 is not set:
  722. send "&d次のプレイヤーがミュートされています:"
  723. send "%{mutelist::*}%"
  724. stop
  725. if {mutelist::*} contains arg 1:
  726. send "&d対象のプレイヤーはミュートされています。"
  727. stop
  728. send "&b対象のプレイヤーはミュートされていません。"
  729.  
  730. on click:
  731. if player is holding lime dye named "&cゲームを抜ける":
  732. remove lime dye named "&cゲームを抜ける" from player
  733. set {join.%player%} to false
  734. send "&cゲームを抜けました"
  735. wait 5 ticks
  736. give grey dye named "&eゲームに参加する" to player
  737.  
  738. on click:
  739. if player is holding grey dye named "&eゲームに参加する":
  740. remove grey dye named "&eゲームに参加する" from player
  741. set {join.%player%} to true
  742. send "&eゲームに参加しました" to player
  743. wait 5 ticks
  744. give lime dye named "&cゲームを抜ける" to player
  745.  
  746. on hunger bar change:
  747. set the player's food level to 10
  748.  
  749. on inventory click:
  750. if {game} is true:
  751. if {team.%player%} is set:
  752. if clicked slot is 39:
  753. cancel event
  754.  
  755. command /pd delete [<offline player>]:
  756. permission: skript.admin
  757. trigger:
  758. set {kill.%uuid of arg 1%} to 0
  759. set {death.%uuid of arg 1%} to 0
  760. set {killdeath.%uuid of arg 1%} to 0
  761. set {win.%uuid of arg 1%} to 0
  762. set {lose.%uuid of arg 1%} to 0
  763. set {winlose.%uuid of arg 1%} to 0
  764. set {level.%uuid of arg 1%} to 1
  765. set {xp.%uuid of arg 1%} to 0
  766. set {needxp.%uuid of arg 1%} to 10
  767.  
  768. command /dye:
  769. permission: skript.admin
  770. trigger:
  771. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement