CommandTimer icon indicating copy to clipboard operation
CommandTimer copied to clipboard

Commands queue

Open chelminski opened this issue 2 years ago • 6 comments

Hi Please add a command delay option so that commands are queued and executed at different intervals. For example, I have a problem with the server hanging when many worlds are generated at the same time. A command queue would have avoided the problems. For example, the server issues the commands: /cmt mw create world1 /cmt mw create world2 /cmt mw create world3 /cmt mw create world4 /cmt mw create world5 ....

And your plugin would execute these commands sequentially, but not immediately. Only every e.g. 10 seconds. /cmt mw create world1 - now /cmt mw create world2 -after 10s /cmt mw create world3 -after 20s /cmt mw create world4 -after 30s /cmt mw create world5 -after 40s

Alternatively, if your plugin already has this function, please write how. I couldn't find any information on the plugin's website :(

chelminski avatar Jan 03 '24 01:01 chelminski

This feature already exists and is documented here: https://titivermeesch.github.io/CommandTimer/docs/configuration/commands#individual-command-delays

There is also a ticket open to modify the existing behaviour but not super relevant: #243 243

titivermeesch avatar Jan 04 '24 10:01 titivermeesch

From what I can see, I can configure it to send specifically defined commands. What I want is more so that I can add one-time commands to the queue. I don't know what commands will be executed. It depends on the users. Maybe several users will want to add new worlds and delete worlds at the same time. Each command will look different (world name, remove/add). I am looking for a solution that will delay the execution of commands entered in the console with the prefix of your plugin. Would this be possible to implement?

chelminski avatar Jan 04 '24 20:01 chelminski

Ah I see. So it's more about executing commands with delays without having to configure a task then?

titivermeesch avatar Jan 14 '24 11:01 titivermeesch

Yes exactly. This is exactly what I meant, but I couldn't explain it simply 😅

chelminski avatar Jan 14 '24 11:01 chelminski

I'll take this as a feature request. I cannot promise any timeline right now because there is so much else that also needs to be done

titivermeesch avatar Jan 14 '24 13:01 titivermeesch