Timed Execute

Execute commands every (x) seconds.

Total Downloads: 3,212 - First Release: May 29, 2016 - Last Update: Jun 5, 2017

5/5, 16 likes
  1. I tried using the "restart 60" in my config and it didnt restart, just shutdown. I am using "Linux Game Server Managers" and their scripts to operate my server so i don't know if that's causing the issue. Any light anyone can shed on this?
     
  2. You'll have to have a different process that starts it. I would suggest running a cronjob that would run "rustserver m" every second minute or so, depending on your servers speed :)
     
  3. Code:
    "RealTime-Timer": {
        "04:00:00": "say <color=orange>Is restarting in</color> 1 hour",
        "04:30:00": "say <color=orange>Is restarting in</color> 30 minutes",
        "04:45:00": "say <color=orange>Is restarting in</color> 15 minutes",
        "04:50:00": "say <color=orange>Is restarting in</color> 10 minutes",
        "04:55:00": "say <color=orange>Is restarting in</color> 5 minutes",
        "04:59:48": "say <color=red>Is restarting in</color> 10 secs",
        "04:59:49": "say <color=red>Is restarting in</color> 9 secs",
        "04:59:50": "say <color=red>Is restarting in</color> 8 secs",
        "04:59:51": "say <color=red>Is restarting in</color> 7 secs",
        "04:59:52": "say <color=red>Is restarting in</color> 6 secs",
        "04:59:53": "say <color=red>Is restarting in</color> 5 secs",
        "04:59:54": "say <color=red>Is restarting in</color> 4 secs",
        "04:59:55": "say <color=red>Is restarting in</color> 3 secs",
        "04:59:56": "say <color=red>Is restarting in</color> 2 secs",
        "04:59:57": "say <color=red>Is restarting in</color> 1 secs",
        "04:59:58": "say <color=red>The server is now restarting.</color>",
        "04:59:59": "server.save",
        "05:00:00": "restart 0"
      },
    edit the times as you need
     
  4. Get Smooth Restarter and put "04:58:00": "sr.restart 2", in your real time timer config.

    That being said, I'm reading others are having trouble with this plugin. I haven't changed my config in months, and I'm getting multiple instances of the same command... config reads:
    "RealTime-Timer": {
    "04:50:00": "say Server is restarting in 10 minutes!",
    "04:55:00": "say Server is restarting in 5 minutes!",
    "04:58:00": "sr.restart 2",
    "04:59:00": "event end",
    "05:10:05": "weather.rain 0",
    "05:10:05": "weather.fog 0",
    "16:50:00": "say Server is restarting in 10 minutes!",
    "16:55:00": "say Server is restarting in 5 minutes!",
    "16:58:00": "sr.restart 2",
    "16:59:00": "event end",
    "17:10:05": "weather.rain 0",
    "17:10:05": "weather.fog 0"

    Instead I'm getting in chat:
    Server is restarting in 5 minutes!
    Server is restarting in 5 minutes!
    Server is restarting in 5 minutes!
    Server is restarting in 5 minutes!
    Server is restarting in 5 minutes!

    Also weather commands aren't being run, sometimes the server won't restart either. What's going on?
     
  5. hi,
    i want to autorestart my server dayli so i use timeexecuted but still not working :

    "EnableInGameTime-Timer": true,
    "EnableRealTime-Timer": true,
    "EnableTimerOnce": false,
    "EnableTimerRepeat": true,
    "InGameTime-Timer": {
    "14:00": "weather.rain 0.6"
    "14:03": "weather.rain 0"
    },
    "RealTime-Timer": {
    "06:00:00": "restart 60",
    "16:30:00": "command2 arg"

    what is wrong ?
     
  6. command2 arg is not a command
     

    Attached Files:

    Last edited by a moderator: Apr 8, 2018
  7. thank you !
     
  8. It tends to skip commands randomly.
    Code:
    "InGameTime-Timer": {
        "16:00": "callch47",
        "18:00": "callheli",
        "20:00": "ad.massdrop",
      },
    Unreliable... This time it skipped the heli.
    What is causing that?
     
  9. It just executed the callch47 twice... instead of heli... What is up with the plugin?
     
  10. So after skimming 32 pages,
    How do I display the time in the server where users could see it using this?
    "0800": "time" - ? This shows up in console but not in the server for players to see.

    Also is there a way to kick all active players or do something where it will kick each active player if not all at once like before restart?
     
  11. The plugin executes the command from the server side. So I guess it makes sense that it put it on the server side. Probably needs a specific command or even plugin script. What do you want to achieve?

    - More on my problem, tho...
    I did get it once to execute all three commands, but it is random. Hoped that server update would fix it. Didn't.
    Maybe it has problems in catching the server time? Maybe it is servers fault... irregular time ticking or something...
     
  12. I want to display the game time in chat for players to see. I don't have any problem with running different commands at a specific time. If you are having issues with random times then you are probably using the bottom part of the file timed commands like, "Command1 arg; 300" which runs every 300 seconds instead of using a specific time. But that's my guess. I thought I could use the universal plugin angry time however it shows real-time and a date. I don't want real time at all. It would be neat to see game time and a modified year like 1080AD or something since its medieval. I should just buckle down and learn more c#. ARGH.
     
  13. I use InfoPanel to display time and more on UI. Customizable panels.
     
  14. What is InfoPanel? Where is it?
     
  15. A plugin. InfoPanel
     
  16. I see it now its a rust plugin. I didn't know cross plugins would work with other games though otherwise i thought it would be in universal. Thanks. I will try it out.
     
  17. Wulf

    Wulf Community Admin

    InfoPanel would be a Rust-only plugin.
    TimedExecute is universal, and would work in any game that Oxide fully supports.
     
  18. Is timedexecute able to display time in chat?
     
  19. Wulf

    Wulf Community Admin

    If you have a command on the server that provides that information, otherwise no.
     
  20. btw you have an idea why my TimedExecute skips commands?