Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &5&l-<Skills>- #通常プレフィックス
- prefix2: \u00a75\u00a7l-<Skills>- #TELLRAW MSGのプレフィックス
- prefix3: &e[Skillsのお知らせ] #お知らせのプレフィックス
- version: 4.8.0
- command /skills [<text>] [<text>]:
- permission: permission.skills
- permission message: &cYou haven't permission.
- aliases: /skills:skills
- trigger:
- if arg-2 is not set:
- 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":
- if arg-1 is "help":
- message "&5&l&o-----------------------< Skills >-----------------------"
- message "&a&l &a&l作った人: ClockClap &e ページ: 1/2"
- message " &ahelp <page> &6- &bこのプラグインのヘルプを表示します。"
- message " &areload &6- &bこのプラグインをリロードします。"
- message " &aversion &6- &bこのプラグインのバージョンを見ます。"
- message " &aignorecooldown &6- &bスキルのクールダウンをトグルします。"
- message " &atoggleskill &6- &bスキルの使用可能をトグルします。"
- message " &agrab &6- &bスキルアイテムをゲットします。"
- message " &asettings &6- &b現在の設定を見ます。"
- message " &alist &6- &bスキルの一覧を表示します。"
- message " &ainfo &6- &bこのプラグインのインフォを見ます。"
- message " &aactive <Skill Name> &6- &bスキルを発動させます。(クールダウンは無しです。)"
- message "&5&l&o--------------------------------------------------------"
- #----------------------- Reload -------------------------
- if arg-1 is "reload":
- message "{@prefix} &bプラグインをリロードしています…"
- wait 15 ticks
- execute console command "sk reload skillscmd"
- execute console command "sk reload skills"
- execute console command "sk reload skillsd"
- execute console command "sk reload skillsic"
- message "{@prefix} &bプラグインをリロードしました。"
- #----------------------- Version -------------------------
- if arg-1 is "version":
- message "{@prefix} &bこのプラグインのバージョンは &5Skills-{@version}&b です。"
- #----------------------- Ignore Cooldown -------------------------
- if arg-1 is "ignorecooldown":
- if {skill} is 1:
- if {ignore.cooldown} is not set:
- set {ignore.cooldown} to 1
- execute console command "sk disable skills"
- execute console command "sk disable skillsd"
- execute console command "sk enable skillsic"
- message "{@prefix} &bIgnore Cooldownを &a有効 &bにしました。"
- execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bIgnore Cooldownが \u00a7a有効 \u00a7bになりました。""}"
- if {ignore.cooldown} is 1:
- set {ignore.cooldown} to 0
- execute console command "sk enable skills"
- execute console command "sk disable skillsd"
- execute console command "sk disable skillsic"
- message "{@prefix} &bIgnore Cooldownを &c無効 &bにしました。"
- execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bIgnore Cooldownが \u00a7c無効 \u00a7bになりました。""}"
- else:
- set {ignore.cooldown} to 1
- execute console command "sk disable skills"
- execute console command "sk disable skillsd"
- execute console command "sk enable skillsic"
- message "{@prefix} &bIgnore Cooldownを &a有効 &bにしました。"
- execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bIgnore Cooldownが \u00a7a有効 \u00a7bになりました。""}"
- else:
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
- message "{@prefix} &cスキルが有効になっていません!"
- #----------------------- Toggle Skill -------------------------
- if arg-1 is "toggleskill":
- if {skill} is not set:
- set {skill} to 0
- execute console command "sk disable skills"
- execute console command "sk disable skillsic"
- execute console command "sk enable skillsd"
- message "{@prefix} &bスキルを &c無効 &bにしました。"
- execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bスキルが \u00a7c無効 \u00a7bになりました。""}"
- if {skill} is 1:
- set {skill} to 0
- execute console command "sk disable skills"
- execute console command "sk disable skillsic"
- execute console command "sk enable skillsd"
- message "{@prefix} &bスキルを &c無効 &bにしました。"
- execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bスキルが \u00a7c無効 \u00a7bになりました。""}"
- else:
- if {ignore.cooldown} is 0:
- set {skill} to 1
- execute console command "sk enable skills"
- execute console command "sk disable skillsd"
- message "{@prefix} &bスキルを &a有効 &bにしました。"
- execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bスキルが \u00a7a有効 \u00a7bになりました。""}"
- else:
- set {skill} to 1
- execute console command "sk enable skillsic"
- execute console command "sk disable skillsd"
- message "{@prefix} &bスキルを &a有効 &bにしました。"
- execute console command "tellraw @a[name=!%player%] {""text"":""{@prefix2} \u00a7bスキルが \u00a7a有効 \u00a7bになりました。""}"
- #----------------------- Grab -------------------------
- if arg-1 is "grab":
- if {skill} is 1:
- execute console command "give %player% gunpowder 1 0 {display:{Name:""§a§lSkill §4§l[Bom]"",Lore:[""§7Cooldown: §a5s""]}}"
- execute console command "give %player% feather 1 0 {display:{Name:""§a§lSkill §f§l[Levitation]"",Lore:[""§7Cooldown: §a10s""]}}"
- execute console command "give %player% iron_sword 1 0 {display:{Name:""§a§lSkill §c§l[Kill]"",Lore:[""§7Cooldown: §a50s""]}}"
- execute console command "give %player% fire_charge 1 0 {display:{Name:""§a§lSkill §6§l[Fireball]"",Lore:[""§7Cooldown: §a3s""]}}"
- execute console command "give %player% fishing_rod 1 0 {display:{Name:""§a§lSkill §3§l[Jump]"",Lore:[""§7Cooldown: §a15s""]}}"
- execute console command "give %player% diamond 1 0 {display:{Name:""§a§lSkill §e§l[Heal]"",Lore:[""§7Cooldown: §a12s""]}}"
- message "{@prefix} &bスキルアイテムをゲットしました。"
- else:
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
- message "{@prefix} &cスキルが有効になっていません。"
- #----------------------- Settings -------------------------
- if arg-1 is "settings":
- if {skill} is 0:
- if {ignore.cooldown} is 1:
- message "{@prefix} &bスキル: &c無効"
- message "{@prefix} &bIgnore Cooldown: &a有効"
- else:
- message "{@prefix} &bスキル: &c無効"
- message "{@prefix} &bIgnore Cooldown: &c無効"
- else:
- if {ignore.cooldown} is 1:
- message "{@prefix} &bスキル: &a有効"
- message "{@prefix} &bIgnore Cooldown: &a有効"
- else:
- message "{@prefix} &bスキル: &a有効"
- message "{@prefix} &bIgnore Cooldown: &c無効"
- if arg-1 is "list":
- if {skill} is 0:
- message "&2&l&o-----------------------< List >-----------------------"
- message " &e ページ: 1/1"
- message "&5- &cBom&b... 爆発します。&7(Cooldown: &a5s)"
- message "&5- &cLevitation&b... 敵を浮かせます。&7(Cooldown: &a10s)"
- message "&5- &cKill&b... 敵を倒します。&7(Cooldown: &a50s)"
- message "&5- &cFireball&b... 火の玉を飛ばします。&7(Cooldown: &a3s)"
- message "&5- &cJump&b... 敵を跳ねさせます。&7(Cooldown: &a15s)"
- message "&5- &cHeal&b... 自分をヒールします。&7(Cooldown: &a12s)"
- message "&2&l&o------------------------------------------------------"
- else:
- message "&2&l&o-----------------------< List >-----------------------"
- message " &e ページ: 1/1"
- message "&5- &aBom&b... 爆発します。&7(Cooldown: &a5s)"
- message "&5- &aLevitation&b... 敵を浮かせます。&7(Cooldown: &a10s)"
- message "&5- &aKill&b... 敵を倒します。&7(Cooldown: &a50s)"
- message "&5- &aFireball&b... 火の玉を飛ばします。&7(Cooldown: &a3s)"
- message "&5- &aJump&b... 敵を跳ねさせます。&7(Cooldown: &a15s)"
- message "&5- &aHeal&b... 自分をヒールします。&7(Cooldown: &a12s)"
- message "&2&l&o------------------------------------------------------"
- #-------------------------- Infomation -------------------------------------
- if arg-1 is "info":
- 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クリックしてインフォを見ます。""]}}"
- message "{@prefix} &bインフォ本をゲットしました。"
- #-------------------------- Message Error -------------------------------------
- if arg-1 is "msg" or "message":
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
- message "{@prefix} &cメッセージを入力してください。"
- #-------------------------- Active -------------------------------------
- if arg-1 is "active":
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
- message "{@prefix} &cスキル名を入力してください。"
- #-------------------------- Update Message -------------------------------------
- if arg-1 is "updatemessage" or "updatemsg":
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
- message "{@prefix} &c最新バージョンを入力してください。"
- #-------------------------- Else. -------------------------------------------------------
- else:
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
- message "{@prefix} &cコマンドの構文が違います。/skills help でコマンドのヘルプを"
- message "&c確認してください。"
- if arg-2 is set:
- if arg-1 is "message" or "msg" or "active" or "help" or "updatemessage" or "updatemsg":
- if arg-1 is "message" or "msg":
- broadcast "{@prefix3} &r%arg 2%"
- if arg-1 is "active":
- if arg-2 is "bom" or "levitation" or "kill" or "fireball" or "jump" or "heal":
- if {skill} is 1:
- if arg-2 is "bom":
- execute console command "/effect %player% 11 1 255 true"
- create safe explosion of force 2 at player
- execute console command "/title %player% times 10 30 10"
- execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
- if arg-2 is "levitation":
- execute console command "/execute %player% ~ ~ ~ /effect @e[name=!%player%,r=4] 25 3 5 true"
- execute console command "/title %player% times 10 30 10"
- execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
- if arg-2 is "kill":
- execute console command "/execute %player% ~ ~ ~ /kill @e[name=!%player%,r=4]"
- execute console command "/title %player% times 10 30 10"
- execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
- if arg-2 is "fireball":
- shoot an fireball at speed 2
- execute console command "/title %player% times 10 30 10"
- execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
- if arg-2 is "jump":
- execute console command "execute %player% ~ ~ ~ /effect @e[name=!%player%,r=4] 25 10 120 true"
- execute console command "execute %player% ~ ~ ~ /scoreboard players set @e[name=!%player%,r=4] jump 1"
- execute console command "/title %player% times 10 30 10"
- execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
- wait 1 ticks
- execute console command "execute %player% ~ ~ ~ /effect @e[score_jump_min=1] 25 0"
- execute console command "execute %player% ~ ~ ~ /scoreboard players set @e[name=!%player%,r=4] jump 0"
- if arg-2 is "heal":
- execute console command "effect %player% 6 1 0 true"
- execute console command "execute %player% ~ ~ ~ /particle totem ~ ~0.5 ~ 0 0 0 0.2 20"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 1 2.0"
- execute console command "/title %player% times 10 30 10"
- execute console command "/title %player% title {""text"":""\u00a7c\u00a7lスキル発動!""}"
- else:
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
- message "{@prefix} &cスキルが有効になっていません!"
- else:
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master @p ~ ~ ~ 1 0.5"
- message "{@prefix} &c未知のスキルです。/skills list でスキルの一覧を確認してください。"
- if arg-1 is "updatemessage" or "updatemsg":
- broadcast "{@prefix3} &r新しいバージョン &5Skills-%arg 2%&r がリリースされました!"
- if arg-1 is "help":
- if arg-2 is "1":
- message "&5&l&o-----------------------< Skills >-----------------------"
- message "&a&l &a&l作った人: ClockClap &e ページ: 1/2"
- message " &ahelp <page> &6- &bこのプラグインのヘルプを表示します。"
- message " &areload &6- &bこのプラグインをリロードします。"
- message " &aversion &6- &bこのプラグインのバージョンを見ます。"
- message " &aignorecooldown &6- &bスキルのクールダウンをトグルします。"
- message " &atoggleskill &6- &bスキルの使用可能をトグルします。"
- message " &agrab &6- &bスキルアイテムをゲットします。"
- message " &asettings &6- &b現在の設定を見ます。"
- message " &alist &6- &bスキルの一覧を表示します。"
- message " &ainfo &6- &bこのプラグインのインフォを見ます。"
- message " &aactive <Skill Name> &6- &bスキルを発動させます。(クールダウンは無しです。)"
- message "&5&l&o--------------------------------------------------------"
- if arg-2 is "2":
- message "&5&l&o-----------------------< Skills >-----------------------"
- message "&a&l &a&l作った人: ClockClap &e ページ: 2/2"
- message " &amessage&2/&amsg &6- &bこのプラグインの作者しか実行しないでください。"
- message " &aupdatemessage&2/&aupdatemsg &6- &bこのプラグインの作者しか実行しないでください。"
- message "&5&l&o--------------------------------------------------------"
Advertisement
Add Comment
Please, Sign In to add comment