Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &7&l[&4AntiSpam&7&l]&r
- 警告文[chat]: &c連続でチャットをすることは出来ません!
- 警告文[command]: &c連続でコマンドを実行することは出来ません!
- クールダウン[chat]: 2 second
- クールダウン[command]: 2 second
- #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
- #==========#
- # コード #
- #==========#
- on join:
- set {%player%cooldwon-chat} to now
- set {%player%cooldwon-command} to now
- on chat:
- difference between {%player%cooldwon-chat} and now is less than {@クールダウン[chat]}:
- cancel event
- send "{@prefix} {@警告文[chat]}" to player
- else:
- set {%player%cooldwon-chat} to now
- on command:
- difference between {%player%cooldwon-command} and now is less than {@クールダウン[command]}:
- cancel event
- send "{@prefix} {@警告文[command]}" to player
- else:
- set {%player%cooldwon-command} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement