Command cooldowns for specific arguments #4922
-
I need to add cooldown to /home bed, without adding cooldown to /home. the problem that the way to teleport to bed is with the /home command. How can I make only the /home bed command start cooling and not all /home commands? WHAT I WANT (cooldown): cooldown 1min = " /home (others)" (home: 60) Sorry, I don't write very well in English. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use a regular expression to match any
For more explanation, see the wiki page on command cooldowns. For help with writing and testing regular expressions, you can use a tool like Regex101 or Regexr. |
Beta Was this translation helpful? Give feedback.
You can use a regular expression to match any
/home
commands that aren't/home bed
. I haven't tested this but it should work:For more explanation, see the wiki page on command cooldowns. For help with writing and testing regular expressions, you can use a tool like Regex101 or Regexr.