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
-
View User Profile
-
Send Message
Posted Sep 3, 2016@vemacs
I've compiled it with the help of a friend and uploaded the plugin to Spigot: 7777seconds Command Cooldown 1.03
-
View User Profile
-
Send Message
Posted Mar 22, 2016Do it works with mycommand commands?
-
View User Profile
-
Send Message
Posted Nov 21, 2015Hello This plugin is very good. But there is BUG It can identify the instruction's capital and lowercase For example: Enchant Enchant ENchant
-
View User Profile
-
Send Message
Posted Sep 13, 2015@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....
-
View User Profile
-
Send Message
Posted Sep 13, 2015@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
-
View User Profile
-
Send Message
Posted Sep 13, 2015What 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
-
View User Profile
-
Send Message
Posted Mar 25, 2015Here'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.
-
View User Profile
-
Send Message
Posted Jan 24, 2015Update?
-
View User Profile
-
Send Message
Posted Dec 1, 2014Will this plugin be updating to 1.8? 1.8 is out now!
-
View User Profile
-
Send Message
Posted Nov 8, 2014@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.
-
View User Profile
-
Send Message
Posted Sep 28, 2014Great plugin, but I really wish it would block aliases :/
-
View User Profile
-
Send Message
Posted Jun 19, 2014@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!
-
View User Profile
-
Send Message
Posted Jun 19, 2014hey 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
-
View User Profile
-
Send Message
Posted Feb 23, 2014This plugin is exploitable because it doesn't take into account case-sensitivity. Would be nice if that could be fixed.
-
View User Profile
-
Send Message
Posted Feb 15, 2014So if i did this: commandcooldown.repair86400 And i gave that permission to the group will it be able to do /repair for 24/7?
-
View User Profile
-
Send Message
Posted Jan 31, 2014It would be great if you could do /cooldown time modifier command Ingame.
-
View User Profile
-
Send Message
Posted Jan 28, 2014Hi, 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.
-
View User Profile
-
Send Message
Posted Jan 18, 2014oh man thanks very lightweight for me just keep it like that but update for new versions
-
View User Profile
-
Send Message
Posted Jan 5, 2014What do I do if the command has spaces? and has the same first word? Ex: /fix /fix all
-
View User Profile
-
Send Message
Posted Jan 5, 2014I 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.