kunihiko_sato

Untitled

Sep 19th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.80 KB | None | 0 0
  1. options:
  2. prefix: &5&l-<Skills>- #通常プレフィックス
  3. prefix2: \u00a75\u00a7l-<Skills>- #TELLRAW MSGのプレフィックス
  4. prefix3: &e[Skillsのお知らせ] #お知らせのプレフィックス
  5. version: 4.8.0
  6.  
  7. command /skills [<text>] [<text>]:
  8. permission: permission.skills
  9. permission message: &cYou haven't permission.
  10. aliases: /skills:skills
  11. trigger:
  12. if arg-2 is not set:
  13. if arg-1 is "help" or "reload" or "version" or "ignorecooldown" or "toggleskill" or "grab" or "settings" or "list" or "info" or "msg" or "message" or "active" or "updatemessage" or "updatemsg":
  14. if arg-1 is "help":
  15. message "&5&l&o-----------------------< Skills >-----------------------"
  16. message "&a&l &a&l作った人: ClockClap &e ページ: 1/2"
  17. message " &ahelp <page> &6- &bこのプラグインのヘルプを表示します。"
  18. message " &areload &6- &bこのプラグインをリロードします。"
  19. message " &aversion &6- &bこのプラグインのバージョンを見ます。"
  20. message " &aignorecooldown &6- &bスキルのクールダウンをトグルします。"
  21. message " &atoggleskill &6- &bスキルの使用可能をトグルします。"
  22. message " &agrab &6- &bスキルアイテムをゲットします。"
  23. message " &asettings &6- &b現在の設定を見ます。"
  24. message " &alist &6- &bスキルの一覧を表示します。"
  25. message " &ainfo &6- &bこのプラグインのインフォを見ます。"
  26. message " &aactive <Skill Name> &6- &bスキルを発動させます。(クールダウンは無しです。)"
  27. message "&5&l&o--------------------------------------------------------"
  28. #----------------------- Reload -------------------------
  29. if arg-1 is "reload":
  30. message "{@prefix} &bプラグインをリロードしています…"
  31. wait 15 ticks
  32. execute console command "sk reload skillscmd"
  33. execute console command "sk reload skills"
  34. execute console command "sk reload skillsd"
  35. execute console command "sk reload skillsic"
  36. message "{@prefix} &bプラグインをリロードしました。"
  37.  
  38. #----------------------- Version -------------------------
  39. if arg-1 is "version":
  40. message "{@prefix} &bこのプラグインのバージョンは &5Skills-{@version}&b です。"
  41.  
  42. #----------------------- Ignore Cooldown -------------------------
  43. if arg-1 is "ignorecooldown":
  44. if {skill} is 1:
  45. if {ignore.cooldown} is not set:
  46. set {ignore.cooldown} to 1
  47. execute console command "sk disable skills"
  48. execute console command "sk disable skillsd"
  49. execute console command "sk enable skillsic"
  50. message "{@prefix} &bIgnore Cooldownを &a有効 &bにしました。"
  51. execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bIgnore Cooldownが \u00a7a有効 \u00a7bになりました。""}"
  52. if {ignore.cooldown} is 1:
  53. set {ignore.cooldown} to 0
  54. execute console command "sk enable skills"
  55. execute console command "sk disable skillsd"
  56. execute console command "sk disable skillsic"
  57. message "{@prefix} &bIgnore Cooldownを &c無効 &bにしました。"
  58. execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bIgnore Cooldownが \u00a7c無効 \u00a7bになりました。""}"
  59. else:
  60. set {ignore.cooldown} to 1
  61. execute console command "sk disable skills"
  62. execute console command "sk disable skillsd"
  63. execute console command "sk enable skillsic"
  64. message "{@prefix} &bIgnore Cooldownを &a有効 &bにしました。"
  65. execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bIgnore Cooldownが \u00a7a有効 \u00a7bになりました。""}"
  66. else:
  67. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
  68. message "{@prefix} &cスキルが有効になっていません!"
  69.  
  70. #----------------------- Toggle Skill -------------------------
  71. if arg-1 is "toggleskill":
  72. if {skill} is not set:
  73. set {skill} to 0
  74. execute console command "sk disable skills"
  75. execute console command "sk disable skillsic"
  76. execute console command "sk enable skillsd"
  77. message "{@prefix} &bスキルを &c無効 &bにしました。"
  78. execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bスキルが \u00a7c無効 \u00a7bになりました。""}"
  79. if {skill} is 1:
  80. set {skill} to 0
  81. execute console command "sk disable skills"
  82. execute console command "sk disable skillsic"
  83. execute console command "sk enable skillsd"
  84. message "{@prefix} &bスキルを &c無効 &bにしました。"
  85. execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bスキルが \u00a7c無効 \u00a7bになりました。""}"
  86. else:
  87. if {ignore.cooldown} is 0:
  88. set {skill} to 1
  89. execute console command "sk enable skills"
  90. execute console command "sk disable skillsd"
  91. message "{@prefix} &bスキルを &a有効 &bにしました。"
  92. execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bスキルが \u00a7a有効 \u00a7bになりました。""}"
  93. else:
  94. set {skill} to 1
  95. execute console command "sk enable skillsic"
  96. execute console command "sk disable skillsd"
  97. message "{@prefix} &bスキルを &a有効 &bにしました。"
  98. execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bスキルが \u00a7a有効 \u00a7bになりました。""}"
  99.  
  100. #----------------------- Grab -------------------------
  101. if arg-1 is "grab":
  102. if {skill} is 1:
  103. execute console command "give %player% gunpowder 1 0 {display:{Name:""§a§lSkill §4§l[Bom]"",Lore:[""§7Cooldown: §a5s""]}}"
  104. execute console command "give %player% feather 1 0 {display:{Name:""§a§lSkill §f§l[Levitation]"",Lore:[""§7Cooldown: §a10s""]}}"
  105. execute console command "give %player% iron_sword 1 0 {display:{Name:""§a§lSkill §c§l[Kill]"",Lore:[""§7Cooldown: §a50s""]}}"
  106. execute console command "give %player% fire_charge 1 0 {display:{Name:""§a§lSkill §6§l[Fireball]"",Lore:[""§7Cooldown: §a3s""]}}"
  107. execute console command "give %player% fishing_rod 1 0 {display:{Name:""§a§lSkill §3§l[Jump]"",Lore:[""§7Cooldown: §a15s""]}}"
  108. execute console command "give %player% diamond 1 0 {display:{Name:""§a§lSkill §e§l[Heal]"",Lore:[""§7Cooldown: §a12s""]}}"
  109. message "{@prefix} &bスキルアイテムをゲットしました。"
  110. else:
  111. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
  112. message "{@prefix} &cスキルが有効になっていません。"
  113.  
  114. #----------------------- Settings -------------------------
  115. if arg-1 is "settings":
  116. if {skill} is 0:
  117. if {ignore.cooldown} is 1:
  118. message "{@prefix} &bスキル: &c無効"
  119. message "{@prefix} &bIgnore Cooldown: &a有効"
  120. else:
  121. message "{@prefix} &bスキル: &c無効"
  122. message "{@prefix} &bIgnore Cooldown: &c無効"
  123. else:
  124. if {ignore.cooldown} is 1:
  125. message "{@prefix} &bスキル: &a有効"
  126. message "{@prefix} &bIgnore Cooldown: &a有効"
  127. else:
  128. message "{@prefix} &bスキル: &a有効"
  129. message "{@prefix} &bIgnore Cooldown: &c無効"
  130. if arg-1 is "list":
  131. if {skill} is 0:
  132. message "&2&l&o-----------------------< List >-----------------------"
  133. message " &e ページ: 1/1"
  134. message "&5- &cBom&b... 爆発します。&7(Cooldown: &a5s)"
  135. message "&5- &cLevitation&b... 敵を浮かせます。&7(Cooldown: &a10s)"
  136. message "&5- &cKill&b... 敵を倒します。&7(Cooldown: &a50s)"
  137. message "&5- &cFireball&b... 火の玉を飛ばします。&7(Cooldown: &a3s)"
  138. message "&5- &cJump&b... 敵を跳ねさせます。&7(Cooldown: &a15s)"
  139. message "&5- &cHeal&b... 自分をヒールします。&7(Cooldown: &a12s)"
  140. message "&2&l&o------------------------------------------------------"
  141. else:
  142. message "&2&l&o-----------------------< List >-----------------------"
  143. message " &e ページ: 1/1"
  144. message "&5- &aBom&b... 爆発します。&7(Cooldown: &a5s)"
  145. message "&5- &aLevitation&b... 敵を浮かせます。&7(Cooldown: &a10s)"
  146. message "&5- &aKill&b... 敵を倒します。&7(Cooldown: &a50s)"
  147. message "&5- &aFireball&b... 火の玉を飛ばします。&7(Cooldown: &a3s)"
  148. message "&5- &aJump&b... 敵を跳ねさせます。&7(Cooldown: &a15s)"
  149. message "&5- &aHeal&b... 自分をヒールします。&7(Cooldown: &a12s)"
  150. message "&2&l&o------------------------------------------------------"
  151. #-------------------------- Infomation -------------------------------------
  152. if arg-1 is "info":
  153. execute console command "/give %player% written_book 1 0 {HideFlags:63,pages:[""[\""\"",{\""text\"":\"" --- Info ---\"",\""bold\"":true,\""color\"":\""dark_aqua\""},{\""text\"":\""\\n\\n\"",\""color\"":\""reset\""},{\""text\"":\""grab, ignorecooldown\"",\""color\"":\""green\""},{\""text\"":\""\\n\"",\""color\"":\""reset\""},{\""text\"":\""\\u306a\\u3069\\u306f\\u3001\"",\""color\"":\""aqua\""},{\""text\"":\""\\n\"",\""color\"":\""reset\""},{\""text\"":\""\\u30b9\\u30ad\\u30eb\\u304c\\u6709\\u52b9\\u306b\\u306a\\u3089\\u306a\\u3044\\u3068\\n\\u3067\\u304d\\u307e\\u305b\\u3093\\u3002\"",\""color\"":\""aqua\""},{\""text\"":\""\\n\\n\"",\""color\"":\""reset\""},{\""text\"":\""toggleskill\"",\""color\"":\""green\""},{\""text\"":\""\\u3067\\u30b9\\u30ad\\u30eb\\u3092\"",\""color\"":\""aqua\""},{\""text\"":\""\\n\"",\""color\"":\""reset\""},{\""text\"":\""\\u6709\\u52b9\\u30fb\\u7121\\u52b9\\u306b\\u3067\\u304d\\u307e\\u3059\\u3002\"",\""color\"":\""aqua\""},{\""text\"":\""\\n\\n \"",\""color\"":\""reset\""}]"",""[\""\"",{\""text\"":\"" --- Info ---\"",\""bold\"":true,\""color\"":\""dark_aqua\""},{\""text\"":\""\\n\\n\"",\""color\"":\""reset\""},{\""text\"":\""/skills help\"",\""color\"":\""green\""},{\""text\"":\""\\n\"",\""color\"":\""reset\""},{\""text\"":\""\\u3067\\u30b3\\u30de\\u30f3\\u30c9\\u306e\\u30d8\\u30eb\\u30d7\\u3092\\u8868\\u793a\\u3057\\u307e\\u3059\\u3002\"",\""color\"":\""aqua\""}]""],title:""§2§lInfo"",author:""§bskills §2(Dev: §a§oClockClap§2)"",display:{Lore:[""§eAuthor: §b§lSkills §2(Dev: §a§oClockClap§2)"",""§9§oOriginal"","""",""§7クリックしてインフォを見ます。""]}}"
  154. message "{@prefix} &bインフォ本をゲットしました。"
  155. #-------------------------- Message Error -------------------------------------
  156. if arg-1 is "msg" or "message":
  157. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
  158. message "{@prefix} &cメッセージを入力してください。"
  159. #-------------------------- Active -------------------------------------
  160. if arg-1 is "active":
  161. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
  162. message "{@prefix} &cスキル名を入力してください。"
  163. #-------------------------- Update Message -------------------------------------
  164. if arg-1 is "updatemessage" or "updatemsg":
  165. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
  166. message "{@prefix} &c最新バージョンを入力してください。"
  167. #-------------------------- Else. -------------------------------------------------------
  168. else:
  169. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
  170. message "{@prefix} &cコマンドの構文が違います。/skills help でコマンドのヘルプを"
  171. message "&c確認してください。"
  172. if arg-2 is set:
  173. if arg-1 is "message" or "msg" or "active" or "help" or "updatemessage" or "updatemsg":
  174. if arg-1 is "message" or "msg":
  175. broadcast "{@prefix3} &r%arg 2%"
  176. if arg-1 is "active":
  177. if arg-2 is "bom" or "levitation" or "kill" or "fireball" or "jump" or "heal":
  178. if {skill} is 1:
  179. if arg-2 is "bom":
  180. execute console command "/effect %player% 11 1 255 true"
  181. create safe explosion of force 2 at player
  182. execute console command "/title %player% times 10 30 10"
  183. execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
  184. if arg-2 is "levitation":
  185. execute console command "/execute %player% ~ ~ ~ /effect @e[name=!%player%,r=4] 25 3 5 true"
  186. execute console command "/title %player% times 10 30 10"
  187. execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
  188. if arg-2 is "kill":
  189. execute console command "/execute %player% ~ ~ ~ /kill @e[name=!%player%,r=4]"
  190. execute console command "/title %player% times 10 30 10"
  191. execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
  192. if arg-2 is "fireball":
  193. shoot an fireball at speed 2
  194. execute console command "/title %player% times 10 30 10"
  195. execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
  196. if arg-2 is "jump":
  197. execute console command "execute %player% ~ ~ ~ /effect @e[name=!%player%,r=4] 25 10 120 true"
  198. execute console command "execute %player% ~ ~ ~ /scoreboard players set @e[name=!%player%,r=4] jump 1"
  199. execute console command "/title %player% times 10 30 10"
  200. execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
  201. wait 1 ticks
  202. execute console command "execute %player% ~ ~ ~ /effect @e[score_jump_min=1] 25 0"
  203. execute console command "execute %player% ~ ~ ~ /scoreboard players set @e[name=!%player%,r=4] jump 0"
  204. if arg-2 is "heal":
  205. execute console command "effect %player% 6 1 0 true"
  206. execute console command "execute %player% ~ ~ ~ /particle totem ~ ~0.5 ~ 0 0 0 0.2 20"
  207. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 1 2.0"
  208. execute console command "/title %player% times 10 30 10"
  209. execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
  210. else:
  211. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
  212. message "{@prefix} &cスキルが有効になっていません!"
  213. else:
  214. execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
  215. message "{@prefix} &c未知のスキルです。/skills list でスキルの一覧を確認してください。"
  216. if arg-1 is "updatemessage" or "updatemsg":
  217. broadcast "{@prefix3} &r新しいバージョン &5Skills-%arg 2%&r がリリースされました!"
  218. if arg-1 is "help":
  219. if arg-2 is "1":
  220. message "&5&l&o-----------------------< Skills >-----------------------"
  221. message "&a&l &a&l作った人: ClockClap &e ページ: 1/2"
  222. message " &ahelp <page> &6- &bこのプラグインのヘルプを表示します。"
  223. message " &areload &6- &bこのプラグインをリロードします。"
  224. message " &aversion &6- &bこのプラグインのバージョンを見ます。"
  225. message " &aignorecooldown &6- &bスキルのクールダウンをトグルします。"
  226. message " &atoggleskill &6- &bスキルの使用可能をトグルします。"
  227. message " &agrab &6- &bスキルアイテムをゲットします。"
  228. message " &asettings &6- &b現在の設定を見ます。"
  229. message " &alist &6- &bスキルの一覧を表示します。"
  230. message " &ainfo &6- &bこのプラグインのインフォを見ます。"
  231. message " &aactive <Skill Name> &6- &bスキルを発動させます。(クールダウンは無しです。)"
  232. message "&5&l&o--------------------------------------------------------"
  233. if arg-2 is "2":
  234. message "&5&l&o-----------------------< Skills >-----------------------"
  235. message "&a&l &a&l作った人: ClockClap &e ページ: 2/2"
  236. message " &amessage&2/&amsg &6- &bこのプラグインの作者しか実行しないでください。"
  237. message " &aupdatemessage&2/&aupdatemsg &6- &bこのプラグインの作者しか実行しないでください。"
  238. message "&5&l&o--------------------------------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment