Command Delay
Command Delay
Execute Console and CommandBlock commands with a delay.
Compatibility
All versions of this plugin were developed using the bukkit-1.6.2-R0.2-20130829.060124-15 API. Although they were made for 1.6.2, they also work with Minecraft versions 1.6.4 and 1.7.2. No known Minecraft-version-specific bugs have been discovered. If you find a bug, please report it to me (iPyronic) via the comment section below, CommandDelay ticket page, or through a private message on Bukkit so that I can attempt to fix it. When reporting a bug, please include the error you received in your server console if available, and any other information that I might need in order to reproduce the bug/error. If I can't reproduce it, I can't fix it.
Commands
/commandDelay [delay] [delayModifier] [command]
Note: If you edit the plugin.yml, you can change the command and aliases to be anything you'd like.
Permissions
commandDelay.use (Defaults to OP. It is required to use the /commandDelay command.)
Notes
There is currently no configuration file for this plugin. All in-game text is currently hard-coded into the plugin.
This plugin is amazing!!!!!!!!!!!!!!!
In reply to misery04:
I'm a year late, but I don't know what your problem could have been. It is working for me in 1.15.2.
In reply to YoutubeJT_Playz:
Can you explain to me the difference of having it execute as a command block vs executing as the console? From what I understand, command blocks are on par with console commands in terms of permissions. Also, this plugin should be working on all versions between 1.6.2 and the current 1.15.2.
Could you make a plugin that does the exact same thing BUT it runs it as console, and could you make it for 1.14.4 If possible
On current version (1.14.2), Command Delay is still working, but not inside command blocks, is this just for me or is there something I can do to make it work again ?
I like quality plugins that are working even after two years of inactivity :)
great plugin! thank you!
@realmpixel
It would not continue across a server reload nor a server restart.
I set time 1 day command. delay will continue or not, if I restarting server.
sorry for my bad english I use translate
Would be good if this had a visible countdown Time associated with it so players would know how long they have left before the command is run.
@DerekZil
I personally use a different plugin for multiple commands at once. I haven't released it though x: and it works a bit differently than the one you linked. Instead of stuff being pre-input in a config, it works like this:
/nestcmd command1; ->command2; ->command3
So with this delay plugin I can do stuff like this: /nestcmd say BlahBlahBlah; ->cd 3 s heal iPyronic; ->cd 5 s kill jeoffreyyy
I don't plan on ever merging the two plugins, but I might consider making the command nesting plugin public.
@iPyronic
Can you add something like this please to do a series of commands too?
Click here.
@ivanhop99
@DerekZil
I'm not sure how any of that would work in this plugin... but since there's interest from multiple people, I suppose it couldn't hurt to ask and maybe find out o.O
1: Wait for player to be online
Wait for who? How does CommandDelay know the target? (is it supposed to be given like the wait-time is (as another /cd parameter)? And then given once more to the actual command that is supposed to run?)
Ex: /cd 5 s myNameIsJeff give myNameIsJeff cake 1
Ex with #3's %player% variable: /cd 5 s myNameIsJeff give %player% cake 1
2: Repeat commands
Is this supposed to be another parameter to the /cd command?
Would the syntax become like this?: /cd [#] [t/s/m/h/d] [player] [repetitions] [command]
If we pretend #1 is implemented with #2, the delay command would be like this to repeat the 'give' command 7 times: /cd 5 s myNameIsJeff 7 give myNameIsJeff cake 1
3: Variables
The variables confuse me the most.
%time% - What time? The one that was entered before? Couldn't it just be entered again? Or is %time% suppose to give something like 2:40am?
%player% - Again, couldn't it just be entered again? Or is this supposed to act as a fix for commandblocks using @r and the fact that @r doesn't return the same thing when we need it to? This one requires #1 to be implemented.
%playersOnline% - The number of players online? An entire list of all online players separated by commas?
%maxPlayers% - Maximum players for what? Where is CommandDelay getting this value from? Is this supposed to be the total number of players online? The total number of players able to be on the server at a given time?
4: Make the player do the command
This can already be done by using minecraft's vanilla /execute command. The player specified will have the permissions of whoever used the /cd command (which by design of this plugin, will likely be a commandblock with OP-like perms).
Ex: /cd 5 s execute [playerName] 0 0 0 suicide
If answers and clarifications can be given for these, they'd have a higher chance of being implemented. But as of right now, there aren't any plans to do it due to the large amount of uncertainty regarding their purpose and how they should fit into the plugin.
(also since I have a lot of large private plugins I'm making right now)
@ivanhop99
Yesh!
I have some idea's for you.
1. Only execute a command when the player is online. When he is not online it will wait until he is online
2. repeat commands
3. have variables
%time%
%player%
%players online%
%max players%
4. execute command as a players
@KingFaris10
How would a bypass permission work?
This doesn't add delays to specific commands, it's mostly for telling command-blocks to wait before executing a command. So like, you have a redstone circuit and then it triggers a commandblock, but you don't want the command executed right away, maybe you want to wait a second while another commandblock does a command first.
May you add a bypass permission node please?
@_COSMO_D_
You can put ticks, seconds, minutes, hours, or days
It only needs the first letter though, so you can see in the example there's only an 's' for 'seconds'
I'm thinking of rewriting this plugin once I get some free time ;D It could be simpler :x
what do you put in [delaymodifier]
@CamSFGiant
I don't quite get what you mean, could you explain more?
Hey @iPyronic I like this but one request think you can add a option that doesn't require a command but is just a delay that does nothing?