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 Apr 28, 2013Any possibility that you could add it to support worldedit commands? It would be awesome! Other than that it works great, thanks for this amazing plugin!
-
View User Profile
-
Send Message
Posted Apr 24, 2013I suggest adding economy. /reducecd heal 120 would reduce the current cooldown on /heal by 120 seconds. There would be an economy config folder where you would have something like "- heal:0.01 ". This would set the cost of lowers the heal cd by 1 second at $0.01, so the command I sated earlier would cost $1.20, and of course there should be an overpay guard so players don't lose money by typing /reducecd heal 50000, when the cs is only on 55 or w/e.
Anyway I just added this plugin, quite a long setup since I am using diff cooldowns for many commands on tens of ranks, but if all goes well then I will love this plugin and thank you greatly :D
-
View User Profile
-
Send Message
Posted Apr 20, 2013If possible I would like an option to have deaths trigger the cooldown for commands like /back for pvp usage so you can't /back after dying.
-
View User Profile
-
Send Message
Posted Apr 10, 2013how about a command "/superkill perform"? I don't want the plugin to charge for "/superkill", only for "/superkill perform". How do I add this permission node? I think that permissions should be negated at the first place, which means if a player does not have that permission then cooldown will apply to them, if they do have the permission then the cooldown will not apply to them. Something should be done to support complex commands; and adding so many nodes, if I for example want to set up like 50 different commands for different groups, adding the nodes would be painful and messy job.
-
View User Profile
-
Send Message
Posted Apr 9, 2013@Gunnerrrrr
Nice idea! I'll get on it. New version within a few days!
-
View User Profile
-
Send Message
Posted Apr 7, 2013Can you add an option for all commands? If I want someone to wait 1-2 seconds between commands.
-
View User Profile
-
Send Message
Posted Apr 7, 2013@doc4crazys
That's a feature to be added soon! Check back here occasionally, and a new version will be released :)
-
View User Profile
-
Send Message
Posted Apr 5, 2013How do i add a command with multiple words like /goldrush class archer
-
View User Profile
-
Send Message
Posted Apr 5, 2013@Stalinwolf
I'm glad you like the plugin!
I can add that feature. It's actually given me a great idea to allow you a lot more control with "extended commands" like /back or any other multiple-permissions commands. I'll do my best to keep it nice and simple!
-
View User Profile
-
Send Message
Posted Apr 4, 2013I'm immensely happy with the simplicity of this plugin. I'm preparing my server to begin accepting donations and have been looking at cooldown plugins, but up until now they've all been confusing.
I do have a question, though. I use Essentials and have given my players the "essentials.back.ondeath" permission, which allows them to use the /back command to return them to the spot they have died. It's a separate permission node from the basic "essentials.back". With your plugin, I've placed /back on a five minute timer, but I'm looking for a ways I might allow them to override the cooldown exclusively for "back.on.death".
Is there a way I could do this with your plugin, or perhaps even something you might be willing to add?
-
View User Profile
-
Send Message
Posted Apr 2, 2013@TheOnlyZaneboy
No, but that's a good feature for me to add! I will add a version 1.1 soon with that ability.
-
View User Profile
-
Send Message
Posted Apr 2, 2013Do long commands work? Ex. /fix all or /f home If so how would one go about setting that node?
-
View User Profile
-
Send Message
Posted Mar 31, 2013@sgary
You could try it with a 1.4.7 server, but I did not use any version-sensitive code. It should definitely work on all previous versions.
-
View User Profile
-
Send Message
Posted Mar 31, 2013is it work with 1.4.7?
-
View User Profile
-
Send Message
Posted Mar 28, 2013Version 1.0.3 is out! Remember to remove commandcooldown.override from your players' permissions if you were using v1.0!
-
View User Profile
-
Send Message
Posted Mar 27, 2013@gustavkeller
Thank you. Hopefully the override bug isn't getting in your way, until Bukkit accepts the new file! :)
-
View User Profile
-
Send Message
Posted Mar 27, 2013hey awsome and nice plugin
-
View User Profile
-
Send Message
Posted Mar 26, 2013You won't have to wait much longer, hopefully! I forgot to include the version number in the file title, and so I have to wait for the admins to approve it again ;P
-
View User Profile
-
Send Message
Posted Mar 26, 2013@TjustinD @TjustinD @theDecrowned
me three
-
View User Profile
-
Send Message
Posted Mar 26, 2013@theDecrowned
me too :D