Command Cooldown Issue
DebuffPvP opened this issue ยท 1 comments
So i added this in the config
# Specify cooldown for both Essentials commands and external commands as well.
# All commands do not start with a Forward Slash (/). Instead of /msg, write msg
#
# Wildcards are supported. E.g.
# - '*i*': 50
# adds a 50 second cooldown to all commands that include the letter i
#
# EssentialsX supports regex by starting the command with a caret ^
# For example, to target commands starting with ban and not banip the following would be used:
# '^ban([^ip])( .*)?': 60 # 60 seconds /ban cooldown.
# Note: If you have a command that starts with ^, then you can escape it using backslash (\). e.g. \^command: 123
command-cooldowns:
feed: 60
repair: 300
repair all: 8000
and the cooldowns are not working repair all uses the same cooldown given for repair not its own and i also tried using these regexes
'^repair.(all){1}': 8000
'^repair.(all){0}': 300
am i doing something wrong if so what should i put in there cause maybe i'm doing it wrong
Resolved on the MOSS discord.
Issue solved by using the following values:
command-cooldowns:
'^repair': 300
'^repair( *all)+': 8000