Advertisement
taktie0304

Untitled

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