As the title suggests, it would be really nice to have a chat command for admins to check when the next event for each type (chinook,heli, cargo etc) is.
Command to see how long until next eventFixed
That can be hard to do since it is done with timers, and I do not track them once they are submitted. I did add a little bit of logic to show the times when the plugin starts up with the release today. It shows the min and max time. Adding this might not be precise as the timers are run in parallel to the code using the server time clock. So any time given would at best be an estimate. I would have to totally recode the times to be centrally managed to do this, and that is a lot of effort for not a lot of reward. I could add some code when it kicks off the timer to give an estimated time of when I expect it to run. Would that work?
Merged post
Here is what it now looks like in the console:
Merged post
Here is what it now looks like in the console:
(13:44:08) | [AutomatedEvents] Next Bradley Event in 43 minutes
(13:44:08) | [AutomatedEvents] Next Cargo Plane Event in 38 minutes
(13:44:08) | [AutomatedEvents] Next Cargo Ship Event in 35 minutes
(13:44:08) | [AutomatedEvents] Next Chinook Event in 33 minutes
(13:44:08) | [AutomatedEvents] Next Helicopter Event in 54 minutes
(13:44:08) | Loaded plugin AutomatedEvents v0.1.14 by k1lly0u
@mspeedie
We need chat commands like; /time bradley returns: Bradley will spawn in X mins
We need chat commands like; /time bradley returns: Bradley will spawn in X mins
It would require tracking the time in variable, it is not essential to the function. Can you explain why an operator needs to know this on demand rather than checking when the event was scheduled?
Because players like that. At least there should be a chat message like "X event is in Y minutes! Get ready!"
It means they will be ready for the event, which means things like the bradley will be spawn camped. The random timing is to keep it interesting and unpredictable by players to avoid spawn camping. IDK your player base, but if mine knew the exact time the Bradley was going to pop I would have an argument between 4 or more players over it. In PVP that could allow a more powerful clan to control top end loot flow to keep the rest of the server down. If you really want it announce when the timer is created that is not hard to do, I would make it optional as I suspect some chaos would ensue.
If it is hard to do with a chat command, it should be announced at least, if u make it optional, it would be perfect.
Now done, with annoucment and in game command. Please test it out and let me know what you think.
Locked automatically