kjfalkeiae

Cooldown - SkriptCodeEditor

Jun 27th, 2019
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. on chat:
  2. if {hot.%player%} is true:
  3. cancel event
  4. send "&cメッセージの送信間隔が速すぎます。"
  5. stop
  6. set {hot.%player%} to true
  7. wait {cooldown}
  8. delete {hot.%player%}
  9.  
  10. command /cooldown [<time span>]:
  11. trigger:
  12. if sender does not have permission "cooldown.settime":
  13. send "&cこのコマンドを実行する権限がありません。"
  14. send "&cこのコマンドを実行するには、「&acooldown.settime&c」が必要です。"
  15. stop
  16. if arg 1 is not set:
  17. send "&c使用法:/cooldown <時間>"
  18. send ""
  19. send "&bクールダウン時間を設定します。"
  20. send "&b時間はSkriptの時間形式(time span)で指定する必要があります。"
  21. stop
  22. if arg 1 is less than 0 seconds:
  23. send "&c時間を0秒以下にすることはできません。"
  24. stop
  25. set {cooldown} to arg 1
  26. broadcast "&bクールダウン時間が&e%arg 1%&bに変更されました。"
Advertisement
Add Comment
Please, Sign In to add comment