Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- permissionnode: "skript.admin"
- on chat:
- if {cd.%player%} is true:
- cancel event
- send "&cチャット送信には、&b%{cooldownviewtime}%&cの間隔を開ける必要があります。"
- stop
- set {cd.%player%} to true
- wait {cooldowntime}
- delete {cd.%player%}
- command /cooldown [<timespan>]:
- trigger:
- if arg 1 is not set:
- send "&b現在のクールダウン時間:&e%{cooldownviewtime}%"
- if sender has permission {@permissionnode}:
- send "&7/cooldown <時間> を使って、クールダウン時間を変更できます。"
- stop
- if sender does not have permission {@permissionnode}:
- send "&cクールダウン時間の変更には、権限「&a%{@permissionnode}%&c」が必要です。"
- stop
- set {cooldowntime} to arg 1
- set {cooldownviewtime} to "%{cooldowntime}%"
- replace all "day" and "days" to "日" in {cooldownviewtime}
- replace all "hour" and "hours" to "時間" in {cooldownviewtime}
- replace all "minute" and "minutes" to "分" in {cooldownviewtime}
- replace all "second" and "seconds" to "秒" in {cooldownviewtime}
- replace all "tick" and "ticks" to "ティック" in {cooldownviewtime}
- replace all " " and "and" to "" in {cooldownviewtime}
- broadcast "&bクールダウン時間が「&a%{cooldownviewtime}%&b」に変更されました。"
- on join:
- delete {cd.%player%}
Advertisement
Add Comment
Please, Sign In to add comment