kunihiko_sato

Untitled

Sep 16th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. command /skills [<text>]:
  2. permission: *
  3. permission message: &cYou haven't permission.
  4. trigger:
  5. if arg-1 is "help" or "help 1" or "reload" or "version" or "ignorecooldown" or "toggleskill":
  6. if arg-1 is "help" or "help 1":
  7. message "&5&l&o-----------------------< Skills >-----------------------"
  8. message "&a&l Developer: ClockClap &e Page: 1/1"
  9. message "&ahelp &6- &bこのプラグインのヘルプを表示します。"
  10. message "&areload &6- &bこのプラグインをリロードします。"
  11. message "&aversion &6- &bこのプラグインのバージョンを見ます。"
  12. message "&aignorecooldown &6- &bスキルのクールダウンをトグルします。"
  13. message "&atoggleskill &6- &bスキルの使用可能をトグルします。"
  14. message "&5&l&o--------------------------------------------------------"
  15. if arg-1 is "reload":
  16. message "&5&l-<Skills>- &bプラグインをリロードしています…"
  17. wait 15 ticks
  18. execute console command "sk reload skillscmd"
  19. execute console command "sk reload skills"
  20. execute console command "sk reload skillsd"
  21. execute console command "sk reload skillsic"
  22. message "&5&l-<Skills>- &bプラグインをリロードしました。"
  23. if arg-1 is "version":
  24. message "&5&l-<Skills>- &bこのプラグインのバージョンは &3&l2.10.8&b です。"
  25. if arg-1 is "ignorecooldown":
  26. if {ignore.cooldown} is not set:
  27. set {ignore.cooldown} to 1
  28. execute console command "sk disable skills"
  29. execute console command "sk disable skillsd"
  30. execute console command "sk enable skillsic"
  31. message "&5&l-<Skills>- &bIgnore Cooldownを &a有効 &bにしました。"
  32. execute console command "tellraw @a[name=!%player%] {""text"":""\u00a75\u00a7l-<Skills>- \u00a7bIgnore Cooldownが \u00a7a有効 \u00a7bになりました。""}"
  33. if {ignore.cooldown} is 1:
  34. set {ignore.cooldown} to 0
  35. execute console command "sk enable skills"
  36. execute console command "sk disable skillsd"
  37. execute console command "sk disable skillsic"
  38. message "&5&l-<Skills>- &bIgnore Cooldownを &c無効 &bにしました。"
  39. execute console command "tellraw @a[name=!%player%] {""text"":""\u00a75\u00a7l-<Skills>- \u00a7bIgnore Cooldownが \u00a7c無効 \u00a7bになりました。""}"
  40. else:
  41. set {ignore.cooldown} to 1
  42. execute console command "sk disable skills"
  43. execute console command "sk disable skillsd"
  44. execute console command "sk enable skillsic"
  45. message "&5&l-<Skills>- &bIgnore Cooldownを &a有効 &bにしました。"
  46. execute console command "tellraw @a[name=!%player%] {""text"":""\u00a75\u00a7l-<Skills>- \u00a7bIgnore Cooldownが \u00a7a有効 \u00a7bになりました。""}"
  47. if arg-1 is "toggleskill":
  48. if {skill} is not set:
  49. set {skill} to 0
  50. execute console command "sk disable skills"
  51. execute console command "sk disable skillsic"
  52. execute console command "sk enable skillsd"
  53. message "&5&l-<Skills>- &bスキルを &c無効 &bにしました。"
  54. execute console command "tellraw @a[name=!%player%] {""text"":""\u00a75\u00a7l-<Skills>- \u00a7bスキルが \u00a7c無効 \u00a7bになりました。""}"
  55. if {skill} is 1:
  56. set {skill} to 0
  57. execute console command "sk disable skills"
  58. execute console command "sk disable skillsic"
  59. execute console command "sk enable skillsd"
  60. message "&5&l-<Skills>- &bスキルを &c無効 &bにしました。"
  61. execute console command "tellraw @a[name=!%player%] {""text"":""\u00a75\u00a7l-<Skills>- \u00a7bスキルが \u00a7c無効 \u00a7bになりました。""}"
  62. else:
  63. set {skill} to 1
  64. execute console command "sk enable skills"
  65. execute console command "sk disable skillsd"
  66. message "&5&l-<Skills>- &bスキルを &a有効 &bにしました。"
  67. execute console command "tellraw @a[name=!%player%] {""text"":""\u00a75\u00a7l-<Skills>- \u00a7bスキルが \u00a7a有効 \u00a7bになりました。""}"
  68. else:
  69. message "&5&l-<Skills>- &c使用法: /skills help"
Add Comment
Please, Sign In to add comment