Advertisement
taktie0304

Untitled

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