kjfalkeiae

cooldown

May 5th, 2019
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. options:
  2. permissionnode: "skript.admin"
  3.  
  4. on chat:
  5. if {cd.%player%} is true:
  6. cancel event
  7. send "&cチャット送信には、&b%{cooldownviewtime}%&cの間隔を開ける必要があります。"
  8. stop
  9. set {cd.%player%} to true
  10. wait {cooldowntime}
  11. delete {cd.%player%}
  12.  
  13. command /cooldown [<timespan>]:
  14. trigger:
  15. if arg 1 is not set:
  16. send "&b現在のクールダウン時間:&e%{cooldownviewtime}%"
  17. if sender has permission {@permissionnode}:
  18. send "&7/cooldown <時間> を使って、クールダウン時間を変更できます。"
  19. stop
  20. if sender does not have permission {@permissionnode}:
  21. send "&cクールダウン時間の変更には、権限「&a%{@permissionnode}%&c」が必要です。"
  22. stop
  23. set {cooldowntime} to arg 1
  24. set {cooldownviewtime} to "%{cooldowntime}%"
  25. replace all "day" and "days" to "日" in {cooldownviewtime}
  26. replace all "hour" and "hours" to "時間" in {cooldownviewtime}
  27. replace all "minute" and "minutes" to "分" in {cooldownviewtime}
  28. replace all "second" and "seconds" to "秒" in {cooldownviewtime}
  29. replace all "tick" and "ticks" to "ティック" in {cooldownviewtime}
  30. replace all " " and "and" to "" in {cooldownviewtime}
  31. broadcast "&bクールダウン時間が「&a%{cooldownviewtime}%&b」に変更されました。"
  32.  
  33. on join:
  34. delete {cd.%player%}
Advertisement
Add Comment
Please, Sign In to add comment