EssentialsX

EssentialsX

2M Downloads

[Feature] /nick command cooldown

Brend-Smits opened this issue ยท 3 comments

commented

Hello,
Someone on my server suggested to added a cooldown to /nick to prevent abuse. I kinda like his suggestion, this would allow more flexibility for servers that provide the /nick feature for a donation option. It will prevent people abusing the /nick .
The cooldown will prevent players with the /nick permission to perform the command again for the configured amount of time.
To allow even more flexibility a permission node could be added that will add a bypass, this will allow certain ranks/groups to be able to bypass the cooldown feature.

Config option would look like this

----
# This option will add a cooldown to the /nick command
# Default: 15 seconds, 0 seconds will disable the cooldown feature
# To bypass this cooldown you can add the permissions essentials.nick.cooldown.bypass
nick-cooldown: 15 
------
commented

Thanks for the information. My bad.

commented

In this command, an option for command cooldowns in general was added.
You can use this.
09acbcd