Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /cmdlist:
- aliases: /cl
- trigger:
- true is true
- command /cmdlistedit [<text>] [<text>] [<text>] [<text>] [<text>]:
- aliases: /cle
- trigger:
- if arg 1 is "genre":
- if arg 2 is "add":
- arg 3 is set
- if {cmdlist::%arg 3%} is true:
- message "&c同IDのジャンルが既に存在します"
- stop
- message "&a新しくジャンルを作成しました &9(Genre ID: %arg 3%)"
- set {cmdlist::%arg 3%} to true
- set {cmdlist::%arg 3%::name} to arg 3
- set {cmdlist::%arg 3%::icon} to command block
- set {cmdlist::%arg 3%::show} to false
- if arg 2 is "rename":
- arg 3 is set
- arg 4 is set
- if {cmdlist::%arg 3%} is not set:
- message "&c存在しないジャンルです"
- stop
- message "&aジャンル名を変更しました &9(Genre ID: %arg 3%)"
- set {cmdlist::%arg 3%::name} to arg 4
- if arg 2 is "icon":
- arg 3 is set
- arg 4 is set
- if {cmdlist::%arg 3%} is not set:
- message "&c存在しないジャンルです"
- stop
- set {_icon} to arg 4 parsed as item
- if {_icon} is not set:
- message "&cアイテムIDが無効です"
- stop
- message "&aジャンルアイコンを変更しました &9(Genre ID: %arg 3%)"
- set {cmdlist::%arg 3%::icon} to {_icon}
- if arg 2 is "show":
- arg 3 is set
- if {cmdlist::%arg 3%} is not set:
- message "&c存在しないジャンルです"
- stop
- message "&aジャンルを表示に設定しました &9(Genre ID: %arg 3%)"
- set {cmdlist::%arg 3%::show} to true
- if arg 2 is "hide":
- arg 3 is set
- if {cmdlist::%arg 3%} is not set:
- message "&c存在しないジャンルです"
- stop
- message "&aジャンルを非表示に設定しました &9(Genre ID: %arg 3%)"
- set {cmdlist::%arg 3%::show} to false
- if arg 2 is "remove":
- arg 3 is set
- if {cmdlist::%arg 3%} is not set:
- message "&c存在しないジャンルです"
- stop
- message "&aジャンルを削除しました &9(Genre ID: %arg 3%)"
- clear {cmdlist::%arg 3%::*}
- clear {cmdlist::%arg 3%}
Advertisement
Add Comment
Please, Sign In to add comment