Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. options:
  2. prefix: &7&l[&4AntiSpam&7&l]&r
  3. 警告文[chat]: &c連続でチャットをすることは出来ません!
  4. 警告文[command]: &c連続でコマンドを実行することは出来ません!
  5. クールダウン[chat]: 2 second
  6. クールダウン[command]: 2 second
  7. #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
  8. #==========#
  9. # コード #
  10. #==========#
  11. on join:
  12. set {%player%cooldwon-chat} to now
  13. set {%player%cooldwon-command} to now
  14.  
  15. on chat:
  16. difference between {%player%cooldwon-chat} and now is less than {@クールダウン[chat]}:
  17. cancel event
  18. send "{@prefix} {@警告文[chat]}" to player
  19. else:
  20. set {%player%cooldwon-chat} to now
  21.  
  22. on command:
  23. difference between {%player%cooldwon-command} and now is less than {@クールダウン[command]}:
  24. cancel event
  25. send "{@prefix} {@警告文[command]}" to player
  26. else:
  27. set {%player%cooldwon-command} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement