I made a chat cooldown skript with little knowledge and I would like to know if its good or needs improvements . Any feed back is welcome!
on chat:
if player doesn't have permission "chatcooldown.bypass":
if {chat::%player%} is not set:
set {chat::%player%} to true
wait 2 seconds
delete {chat::%player%}
else:
if {chat::%player%} is true:
cancel event
send "{@prefix}You Have To Wait 2 Seconds Before Sending a Message Again."```
Btw idk if I am suppost to ask for skript optimisation here xD