Jump to content

Adding a cooldown to a preexisting skript?


sulf

Recommended Posts

Hey 🙂 I have this skript:

command /suicide:
    trigger:
        kill player
        broadcast "&c&l%player% took the easy way out with /suicide."

I want to add a cooldown to this skript so that a player can only use it once every 15 seconds or so. thanks! 

Link to comment
Share on other sites

command /suicide:
    cooldown: 15 seconds
    cooldown message: You can do that again in %remaining time%.
    trigger:
        kill player
        broadcast "%player% took the easy way out with /suicide

I hope this works

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...