Advertisement
taktie0304

Untitled

Jul 21st, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.43 KB | None | 0 0
  1. command /scoreoption:
  2. trigger:
  3. command "/scoreboard teams add red"
  4. command "/scoreboard teams add blue"
  5. command "/scoreboard teams option red color red"
  6. command "/scoreboard teams option blue color blue"
  7. command "/scoreboard teams option red friendlyfire false"
  8. command "/scoreboard teams option blue friendlyfire false"
  9. command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
  10. command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
  11. set {game} to false
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. command /start:
  20. trigger:
  21. if {game} is false:
  22. loop all players:
  23. send loop-player title "&a5" with subtitle "&fスタートまで" for 1 seconds
  24. wait 1 second
  25. loop all players:
  26. send loop-player title "&a4" with subtitle "&fスタートまで" for 1 seconds
  27. wait 1 second
  28. loop all players:
  29. send loop-player title "&a3" with subtitle "&fスタートまで" for 1 seconds
  30. wait 1 second
  31. loop all players:
  32. send loop-player title "&a2" with subtitle "&fスタートまで" for 1 seconds
  33. wait 1 second
  34. loop all players:
  35. send loop-player title "&a1" with subtitle "&fスタートまで" for 1 seconds
  36. wait 1 second
  37. set {gameplayer} to 0
  38. loop all players:
  39. if {join.%loop-player%} is true:
  40. add 1 to {gameplayer}
  41. if {gameplayer} <= 1:
  42. broadcast "&c参加人数が足りませんでした"
  43. else:
  44. set {red} to 0
  45. set {blue} to 0
  46. set {count} to 180
  47. set {lobby} to location (49, 5, 10)
  48. set {cmdlobby} to "49 5 10"
  49. set {redspawn} to location (-80, 22, 33)
  50. set {bluespawn} to location (-18, 19, 0)
  51. set {obsidian} to true
  52. set {diamondpickaxe} to true
  53. command "/scoreboard teams empty red"
  54. command "/scoreboard teams empty blue"
  55. loop all players:
  56. if {join.%loop-player%} is true:
  57. if {a} == 0:
  58. command "clear %loop-player%"
  59. if {obsidian} is true:
  60. command "/give %loop-player% minecraft:obsidian 1 0 {CanPlaceOn:[""minecraft:gold_block""]}"
  61. set {obsidian} to false
  62. set {team.%loop-player%} to "red"
  63. set {teamchat.%loop-player%} to "&c"
  64. add 1 to {red}
  65. command "/scoreboard teams join red %loop-player%"
  66. wait 2 ticks
  67. teleport the loop-player to {redspawn}
  68. set rf max hp of loop-player to 12
  69. give bow to loop-player
  70. give 32 arrow to loop-player
  71. equip loop-player with leather helmet
  72. dye loop-player's helmet (255, 51, 0)
  73. set the player's gamemode to adventure
  74. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を防衛せよ" for 5 seconds
  75. delete {join.%loop-player%}
  76. set {a} to 1
  77. else:
  78. command "clear %loop-player%"
  79. if {diamondpickaxe} is true:
  80. command "/give %loop-player% minecraft:diamond_pickaxe 1 0 {ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
  81. set {diamondpickaxe} to false
  82. set {team.%loop-player%} to "blue"
  83. set {teamchat.%loop-player%} to "&9"
  84. add 1 to {blue}
  85. command "/scoreboard teams join blue %loop-player%"
  86. wait 2 ticks
  87. teleport the loop-player to {bluespawn}
  88. set rf max hp of loop-player to 12
  89. give bow to loop-player
  90. give 32 arrow to loop-player
  91. equip loop-player with leather helmet
  92. dye loop-player's helmet (0, 51, 255)
  93. set the player's gamemode to adventure
  94. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を破壊せよ" for 5 seconds
  95. delete {join.%loop-player%}
  96. set {a} to 0
  97. set {game} to true
  98. enable PvP
  99. else:
  100. send "&c現在試合中です" to player
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108. on death of player:
  109. if {game} is true:
  110. set the death message to "%{teamchat.%attacker%}%%attacker% &7--&8|&6)&7--> %{teamchat.%victim%}%%victim%"
  111. set {DeathPoint.%player%} to location of player
  112. force the player to respawn
  113. teleport player to {DeathPoint.%player%}
  114. set the player's gamemode to spectator
  115. remove 1 from {%{team.%victim%}%}
  116. add 1 to {kill.%uuid of attacker%}
  117. add 1 to {death.%uuid of victim%}
  118. add 3 to {xp.%uuid of attacker%}
  119. send "&a+3xp" to attacker
  120. if {obsidian} is true:
  121. if {red} is 0:
  122. loop all players:
  123. if {team.%loop-player%} is "red":
  124. send loop-player title " " with subtitle "&f味方が全員倒された" for 3 seconds
  125. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  126. if {team.%loop-player%} is "blue":
  127. send loop-player title " " with subtitle "&f敵は全滅した。黒曜石を破壊せよ" for 3 seconds
  128. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  129. else if {blue} is 0:
  130. set {game} to false
  131. disable PvP
  132. loop all players:
  133. if {team.%loop-player%} is "red":
  134. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  135. send "&6&l勝利!" to loop-player
  136. send "&a+10xp" to loop-player
  137. add 10 to {xp.%uuid of loop-player%}
  138. add 1 to {win.%uuid of loop-player%}
  139. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  140. if {team.%loop-player%} is "blue":
  141. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  142. send "&9&l敗北..." to loop-player
  143. send "&a+2xp" to loop-player
  144. add 2 to {xp.%uuid of loop-player%}
  145. add 1 to {lose.%uuid of loop-player%}
  146. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  147. wait 6 seconds
  148. loop all players:
  149. if {team.%loop-player%} is set:
  150. command "clear %loop-player%"
  151. give grey dye named "&eゲームに参加する" to loop-player
  152. teleport the loop-player to {lobby}
  153. set rf max hp of loop-player to 20
  154. set health of loop-player to max health of loop-player
  155. set the loop-player's gamemode to adventure
  156. delete {team.%loop-player%}
  157. else if {red} is 0:
  158. set {game} to false
  159. disable PvP
  160. loop all players:
  161. if {team.%loop-player%} is "red":
  162. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  163. send "&9&l敗北..." to loop-player
  164. send "&a+2xp" to loop-player
  165. add 2 to {xp.%uuid of loop-player%}
  166. add 1 to {lose.%uuid of loop-player%}
  167. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  168. if {team.%loop-player%} is "blue":
  169. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  170. send "&6&l勝利!" to loop-player
  171. send "&a+10xp" to loop-player
  172. add 10 to {xp.%uuid of loop-player%}
  173. add 1 to {win.%uuid of loop-player%}
  174. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  175. wait 6 seconds
  176. loop all players:
  177. if {team.%loop-player%} is set:
  178. command "clear %loop-player%"
  179. give grey dye named "&eゲームに参加する" to loop-player
  180. teleport the loop-player to {lobby}
  181. set rf max hp of loop-player to 20
  182. set health of loop-player to max health of loop-player
  183. set the loop-player's gamemode to adventure
  184. delete {team.%loop-player%}
  185. else if {blue} is 0:
  186. set {game} to false
  187. disable PvP
  188. loop all players:
  189. if {team.%loop-player%} is "red":
  190. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  191. send "&6&l勝利!" to loop-player
  192. send "&a+10xp" to loop-player
  193. add 10 to {xp.%uuid of loop-player%}
  194. add 1 to {win.%uuid of loop-player%}
  195. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  196. if {team.%loop-player%} is "blue":
  197. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  198. send "&9&l敗北..." to loop-player
  199. send "&a+2xp" to loop-player
  200. add 2 to {xp.%uuid of loop-player%}
  201. add 1 to {lose.%uuid of loop-player%}
  202. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  203. wait 6 seconds
  204. loop all players:
  205. if {team.%loop-player%} is set:
  206. command "clear %loop-player%"
  207. give grey dye named "&eゲームに参加する" to loop-player
  208. teleport the loop-player to {lobby}
  209. set rf max hp of loop-player to 20
  210. set health of loop-player to max health of loop-player
  211. set the loop-player's gamemode to adventure
  212. delete {team.%loop-player%}
  213. else:
  214. loop all players:
  215. if {team.%loop-player%} is "red":
  216. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  217. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  218. if {team.%loop-player%} is "blue":
  219. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  220. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229. on quit:
  230. if {team.%player%} is set:
  231. remove 1 from {%{team.%player%}%}
  232. delete {team.%player%}
  233. command "/scoreboard teams leave %{team.%player%}% %player%"
  234. if {red} is 0:
  235. set {game} to false
  236. disable PvP
  237. loop all players:
  238. if {team.%loop-player%} is "red":
  239. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  240. send "&9&l敗北..." to loop-player
  241. send "&a+2xp" to loop-player
  242. add 2 to {xp.%uuid of loop-player%}
  243. add 1 to {lose.%uuid of loop-player%}
  244. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  245. if {team.%loop-player%} is "blue":
  246. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  247. send "&6&l勝利!" to loop-player
  248. send "&a+10xp" to 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. command "clear %loop-player%"
  256. give grey dye named "&eゲームに参加する" to loop-player
  257. teleport the loop-player to {lobby}
  258. set rf max hp of loop-player to 20
  259. set health of loop-player to max health of loop-player
  260. set the loop-player's gamemode to adventure
  261. delete {team.%loop-player%}
  262. else if {blue} is 0:
  263. set {game} to false
  264. disable PvP
  265. loop all players:
  266. if {team.%loop-player%} is "red":
  267. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  268. send "&6&l勝利!" to loop-player
  269. send "&a+10xp" to loop-player
  270. add 10 to {xp.%uuid of loop-player%}
  271. add 1 to {win.%uuid of loop-player%}
  272. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  273. if {team.%loop-player%} is "blue":
  274. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  275. send "&9&l敗北..." to loop-player
  276. send "&a+2xp" to loop-player
  277. add 2 to {xp.%uuid of loop-player%}
  278. add 1 to {lose.%uuid of loop-player%}
  279. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  280. wait 6 seconds
  281. loop all players:
  282. if {team.%loop-player%} is set:
  283. command "clear %loop-player%"
  284. give grey dye named "&eゲームに参加する" to loop-player
  285. teleport the loop-player to {lobby}
  286. set rf max hp of loop-player to 20
  287. set health of loop-player to max health of loop-player
  288. set the loop-player's gamemode to adventure
  289. delete {team.%loop-player%}
  290. else:
  291. loop all players:
  292. if {team.%loop-player%} is "red":
  293. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  294. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  295. if {team.%loop-player%} is "blue":
  296. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  297. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306. on place of obsidian:
  307. if {game} is true:
  308. set {count} to 50
  309. set {obsidian} to true
  310. loop all players:
  311. if {team.%loop-player%} is "red":
  312. send "&a&l黒曜石が設置された! 50秒間守り切れ!" to loop-player
  313. send loop-player title " " with subtitle "&a&l黒曜石が設置された! 50秒間守り切れ!" for 3 seconds
  314. if {team.%loop-player%} is "blue":
  315. send "&c&l黒曜石が設置された! 50秒以内に破壊せよ!" to loop-player
  316. send loop-player title " " with subtitle "&c&l黒曜石が設置された! 50秒以内に破壊せよ!" for 3 seconds
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325. on break of obsidian:
  326. if {game} is true:
  327. set {game} to false
  328. disable PvP
  329. loop all players:
  330. if {team.%loop-player%} is "red":
  331. send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
  332. send "&9&l敗北..." to loop-player
  333. send "&a+2xp" to loop-player
  334. add 2 to {xp.%uuid of loop-player%}
  335. add 1 to {lose.%uuid of loop-player%}
  336. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  337. if {team.%loop-player%} is "blue":
  338. send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
  339. send "&6&l勝利!" to loop-player
  340. send "&a+10xp" to loop-player
  341. add 10 to {xp.%uuid of loop-player%}
  342. add 1 to {victory.%uuid of loop-player%}
  343. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  344. wait 6 seconds
  345. loop all players:
  346. if {team.%loop-player%} is set:
  347. command "clear %loop-player%"
  348. give grey dye named "&eゲームに参加する" to loop-player
  349. teleport the loop-player to {lobby}
  350. set rf max hp of loop-player to 20
  351. set health of loop-player to max health of loop-player
  352. set the loop-player's gamemode to adventure
  353. delete {team.%loop-player%}
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362. every a second in "world":
  363. if {game} is true:
  364. remove 1 from {count}
  365. if {count} < 0:
  366. set {game} to false
  367. disable PvP
  368. if {obsidian} is true:
  369. loop all players:
  370. if {team.%loop-player%} is "red":
  371. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  372. send "&6&l勝利!" to loop-player
  373. send "&a+10xp" to loop-player
  374. add 10 to {xp.%uuid of loop-player%}
  375. add 1 to {win.%uuid of loop-player%}
  376. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  377. if {team.%loop-player%} is "blue":
  378. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  379. send "&9&l敗北..." to loop-player
  380. send "&a+2xp" to loop-player
  381. add 2 to {xp.%uuid of loop-player%}
  382. add 1 to {lose.%uuid of loop-player%}
  383. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  384. wait 6 seconds
  385. loop all players:
  386. if {team.%loop-player%} is set:
  387. command "clear %loop-player%"
  388. give grey dye named "&eゲームに参加する" to loop-player
  389. command "/tp %loop-player% %{cmdlobby}%"
  390. set rf max hp of loop-player to 20
  391. set health of loop-player to max health of loop-player
  392. set the loop-player's gamemode to adventure
  393. delete {team.%loop-player%}
  394. else:
  395. loop all players:
  396. if {team.%loop-player%} is "red":
  397. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  398. send "&9&l敗北..." to loop-player
  399. send "&a+2xp" to loop-player
  400. add 2 to {xp.%uuid of loop-player%}
  401. add 1 to {lose.%uuid of loop-player%}
  402. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  403. if {team.%loop-player%} is "blue":
  404. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  405. send "&6&l勝利!" to loop-player
  406. send "&a+10xp" to loop-player
  407. add 10 to {xp.%uuid of loop-player%}
  408. add 1 to {win.%uuid of loop-player%}
  409. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  410. wait 6 seconds
  411. loop all players:
  412. if {team.%loop-player%} is set:
  413. command "clear %loop-player%"
  414. give grey dye named "&eゲームに参加する" to loop-player
  415. command "/tp %loop-player% %{cmdlobby}%"
  416. set rf max hp of loop-player to 20
  417. set health of loop-player to max health of loop-player
  418. set the loop-player's gamemode to adventure
  419. delete {team.%loop-player%}
  420. loop all players:
  421. if {team.%loop-player%} is set:
  422. set action bar of loop-player to "&e(残り時間: %{count}%秒)"
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431. command /stats [<offline player>]:
  432. trigger:
  433. if arg 1 is not set:
  434. send "&6-----< &b%player% &6>-----"
  435. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  436. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  437. send " &alevel: &e%{level.%uuid of player%}%" to player
  438. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  439. send " "
  440. send " &akill: &e%{kill.%uuid of player%}%" to player
  441. send " &adeath: &e%{death.%uuid of player%}%" to player
  442. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  443. send " &awin: &e%{win.%uuid of player%}%" to player
  444. send " &alose: &e%{lose.%uuid of player%}%" to player
  445. send " &aW/L: &e%{winlose.%uuid of player%}%" to player
  446. else:
  447. send "&6-----< &b%arg 1% &6>-----"
  448. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  449. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  450. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  451. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  452. send " "
  453. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  454. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  455. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  456. send " &awin: &e%{win.%uuid of arg 1%}%" to player
  457. send " &alose: &e%{lose.%uuid of arg 1%}%" to player
  458. send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  459.  
  460. on first join:
  461. set {kill.%uuid of player%} to 0
  462. set {death.%uuid of player%} to 0
  463. set {killdeath.%uuid of player%} to 0
  464. set {win.%uuid of player%} to 0
  465. set {lose.%uuid of player%} to 0
  466. set {winlose.%uuid of player%} to 0
  467. set {level.%uuid of player%} to 1
  468. set {xp.%uuid of player%} to 0
  469. set {needxp.%uuid of player%} to 10
  470. set {prefix.%uuid of player%} to ""
  471. set {suffix.%uuid of player%} to ""
  472.  
  473. on any movement:
  474. if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
  475. set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
  476. add 1 to {level.%uuid of player%}
  477. set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
  478. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
  479. 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%}%"
  480. set tab header to "&7-- &6&lCounter Strike &d&lRealms &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  481.  
  482. on join:
  483. wait 3 ticks
  484. 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%}%"
  485. set tab header to "&7-- &6&lCounter Strike &d&lRealms &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  486. command "/clear %player%"
  487. give grey dye named "&eゲームに参加する" to player
  488. command "/tp %player% %{cmdlobby}%"
  489. set rf max hp of player to 20
  490. set health of player to max health of player
  491. command "/gamemode 2 %player%"
  492. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  493. send " &f&lCounter Strike Realms" to player
  494. send " " to player
  495. send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
  496. send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
  497. send " &e&lそれを壊されないよう守る必要があります。" to player
  498. send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
  499. send " &e&lもし置かれても、破壊が可能です。" to player
  500. send " " to player
  501. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  502.  
  503. on chat:
  504. cancel event
  505. if {mutelist::*} contains player:
  506. send "&cあなたはミュートされているため、発言することができません。" to player
  507. stop
  508. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%&e》 &r%message%"
  509.  
  510. command /chat <text> <offline player> <text>:
  511. permission: skript.admin
  512. usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  513. trigger:
  514. if arg 1 is "prefix":
  515. set {prefix.%uuid of arg 2%} to coloured arg 3
  516. send "&b%arg 2%さんのprefixを「&r%{prefix.%uuid of arg 2%}%&b」に変更しました。"
  517. stop
  518. if arg 1 is "suffix":
  519. set {suffix.%uuid of arg 2%} to coloured arg 3
  520. send "&b%arg 2%さんのsuffixを&r「%{suffix.%uuid of arg 2%}%&b」に変更しました。"
  521. stop
  522. if arg 1 is "mute":
  523. if {mutelist::*} contains arg 2:
  524. send "&c%arg 2%さんはすでにミュートされています。"
  525. stop
  526. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  527. send "&e理由:%coloured arg 3%" to ops
  528. add arg 2 to {mutelist::*}
  529. stop
  530. if arg 1 is "unmute":
  531. if {mutelist::*} contains arg 2:
  532. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  533. send "&a理由:%coloured arg 3%" to ops
  534. remove arg 2 from {mutelist::*}
  535. stop
  536. send "&c%arg 2%さんはミュートされていません。"
  537. stop
  538.  
  539. command /mutelist [<offline player>]:
  540. permission: skript.admin
  541. trigger:
  542. if arg 1 is not set:
  543. send "&d次のプレイヤーがミュートされています:"
  544. send "%{mutelist::*}%"
  545. stop
  546. if {mutelist::*} contains arg 1:
  547. send "&d対象のプレイヤーはミュートされています。"
  548. stop
  549. send "&b対象のプレイヤーはミュートされていません。"
  550.  
  551. on click:
  552. if player is holding lime dye named "&cゲームを抜ける":
  553. remove lime dye named "&cゲームを抜ける" from player
  554. set {join.%player%} to false
  555. send "&cゲームを抜けました"
  556. wait 5 ticks
  557. give grey dye named "&eゲームに参加する" to player
  558.  
  559. on click:
  560. if player is holding grey dye named "&eゲームに参加する":
  561. remove grey dye named "&eゲームに参加する" from player
  562. set {join.%player%} to true
  563. send "&eゲームに参加しました" to player
  564. wait 5 ticks
  565. give lime dye named "&cゲームを抜ける" to player
  566.  
  567. command /pd delete [<offline player>]:
  568. permission: skript.admin
  569. trigger:
  570. set {kill.%uuid of player%} to 0
  571. set {death.%uuid of player%} to 0
  572. set {killdeath.%uuid of player%} to 0
  573. set {win.%uuid of player%} to 0
  574. set {lose.%uuid of player%} to 0
  575. set {winlose.%uuid of player%} to 0
  576. set {level.%uuid of player%} to 1
  577. set {xp.%uuid of player%} to 0
  578. set {needxp.%uuid of player%} to 10
  579. set {prefix.%uuid of player%} to ""
  580. set {suffix.%uuid of player%} to ""
  581.  
  582. command /dye:
  583. permission: skript.admin
  584. trigger:
  585. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement