Command Cooldown
Command Cooldown
Command Cooldown
Command Cooldown allows you to set a cooldown for any command, set in a config. What can you use it for? Standard users might have to wait xxx amount of seconds between uses of a command like warp, while donator ranks would get lower, or perhaps even no cooldown between uses. Or perhaps you just want a 60 seconds delay between uses of /smite! It's all possible!
Configuration
In the config.yml, simple add the command you want limited, followed by the seconds of delay. After that, every user with the permission "commandcooldown." + (commandname) + (seconds of delay) will have to wait that amount of seconds between uses of the command. Any cooldowns will stay persistent even if the server reloads or restarts!
Example: In the config, if " - heal60" is added under "commands:", all players with the permission "commandcooldown.heal60" will have to wait 60 seconds between uses of /heal. If you also have " - heal20" in the config, and a player has both permissions "commandcooldown.heal20" and "commandcooldown.heal60", they will only have to wait 20 seconds.
The config comes with two example uses.
Commands
- /commandcooldown - reloads the plugin configuration without having to restart the server.
Permissions
- commandcooldown.override - override all cooldowns.
- commandcooldown.[command][seconds of delay] - delay a command for a specific rank. This permission will only be active if it has been set in the config first. Example: commandcooldown.smite60.
- If a player does not have any commandcooldown permissions relating to a command, he or she will not be limited by any cooldowns that are in the configuration pertaining to that command.
- commandcooldown.reload - allows use of /commandcooldown, which reloads the configuration without having to restart the server.
Here is the source code, if you're curious: source
@vemacs
I've compiled it with the help of a friend and uploaded the plugin to Spigot: 7777seconds Command Cooldown 1.03
Do it works with mycommand commands?
Hello This plugin is very good. But there is BUG It can identify the instruction's capital and lowercase For example: Enchant Enchant ENchant
@obsidiancraftfactions
i have tried: /mangaddp (rank) commandcooldown.repall.21600 /mangaddp (rank) commandcooldown.repall21600 /mangaddp (rank) commandcooldown.rep_all21600 /mangaddp (rank) commandcooldown.rep_all.21600 but they all dont work....
@obsidiancraftfactions
the command to put i n is /rep all but how do i put a 6 hour cooldown on that? i cant get it to work, hope you can help me out :)
thanks
What do i have to write in the chat if i want a 6 hour cooldown on the /repair all? i cant get it to work.
Thanks! Nice plugin btw
Here's the source for a patched version which compiles against Spigot 1.8 and fixes the case sensitivity issue: https://github.com/vemacs/CommandCooldown
Run Maven to get the JAR.
Update?
Will this plugin be updating to 1.8? 1.8 is out now!
@CaptainRage21
In the config you'll put in feed600 (=10mins).. for the lower rank feed900 (15mins)
then add permissions to the each rank.. say rank A is the one that has 15mins, the permission node would be commandcooldown.feed600
for the other it'll be the same, just with feed900.
Great plugin, but I really wish it would block aliases :/
@awesomejj101
Hello Awsome, I am NOT 100% sure if this is how but in the config try doing commandcooldown.fixall(time) or commandcooldown.fix_all(time) agian im not 100% sure. Hopefully it works for you!
hey if i want to make it where my lowest donator can do /feed every 15min and the one higher is 10min. is that possible?????
skype: Faze_Snazzy
This plugin is exploitable because it doesn't take into account case-sensitivity. Would be nice if that could be fixed.
So if i did this: commandcooldown.repair86400 And i gave that permission to the group will it be able to do /repair for 24/7?
It would be great if you could do /cooldown time modifier command Ingame.
Hi, will there be an update to 1.1 to fix the cooldowns for commands with parameters such as "/f home". An update would be very welcome. Great job with the current version and thank you.
oh man thanks very lightweight for me just keep it like that but update for new versions
What do I do if the command has spaces? and has the same first word? Ex: /fix /fix all
I think it would be cool if you added a group for timers. For instance you make a permission called commandcooldown.group.teleport60 then you can put what commands count towards this group. So you can do /spawn /warp /tpa /randomlocation /top etc. And they'd all count towards the 60 second cool down that's specified.