If you have been sent a skript from StrxmyLive#0001 that includes this websites link but it isn't on here it just hasn't been added yet!
Here is how to add cooldowns to a command using Skript.
First get the command created:
command /test:
trigger:
message "Epic Cooldown Tutorial"
We now have a command created, now time to add the cooldown. Its not that hard to make:
command /test:
cooldown: 10 seconds
trigger:
message "Epic Cooldown Tutorial"
You now have a command with a cooldown, but, how are people going know that they are on a cooldown? Lets add a cooldown message:
command /test:
cooldown: 10 seconds
cooldown message: &4&lError! &7There is a 10 second cooldown on this command
trigger:
message "Epic Cooldown Tutorial"
So, now we have a cooldown time and a cooldown message but what about if we would like staff to be able to bypass the cooldown, lets do that now:
command /test:
cooldown: 10 seconds
cooldown message: &4&lError! &7There is a 10 second cooldown on this command
cooldown bypass: strxmy.test.bypass
trigger:
message "Epic Cooldown Tutorial"
Now when you give people the permission "strxmy.test.bypass" they can bypass the cooldown for using the command /test!
If you have any suggestions on what we should add here feel free to contact staff in the discord!