Timed Execute

Execute commands every (x) seconds.

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

5/5, 16 likes
  1. Cool plugin, good work, but curious does this plugin support running oxide commands?

    I tried using it to run: oxide.reload PluginName

    but it sadly didnt work
     
  2. Wulf

    Wulf Community Admin

    If you can run the command in your server's console, you can run it in the plugin.
     
  3. Ill test again and report back
     
  4. Wulf

    Wulf Community Admin

    Keep in mind that plugin names should be exactly as you have them in your plugins folder.
     
  5. Thank you Wulf! It does work! I guess I missed it my first test the other day since it showed the [TimedExecute] log message last or I mistyped, not sure

    For this test I unloaded the plugin ProximityScanners, and had TimerOnce set to true and set to run oxide.reload ProximityScanners after 60 seconds and reloaded TimedExecute

    Log:
    Loaded plugin ProximityScanners v1.0.2 by redBDGR
    Calling 'OnServerInitialized' on 'ProximityScanners v1.0.2' took 216ms
    [Timed Execute] ran CMD: oxide.reload ProximityScanners

    Thank you! :D
     
  6. I'm having some issues that I know are completely my own inability: I'd like to have Radiation turn off once per hour, for five minutes, then turn back on. I've tried doing this on my own with this mod, but I am terrible.

    Would any of you kind folks know how I can attain this using Timed Execute?
     
  7. What code are you using and where you putting it or post your config with it in
     
  8. {
    "EnableInGameTime-Timer": false,
    "EnableRealTime-Timer": false,
    "EnableTimerOnce": false,
    "EnableTimerRepeat": true,
    "InGameTime-Timer": {
    "01:00": "weather rain",
    "12:00": "command 1",
    "15:00": "command 2"
    },
    "RealTime-Timer": {
    "16:00:00": "command1 arg",
    "16:30:00": "command2 arg",
    "17:00:00": "command3 arg",
    "18:00:00": "command4 arg"
    },
    "TimerOnce": {
    "command1 'msg'": 60,
    "command2 'msg'": 120,
    "command3 arg": 180,
    "reset.timeronce": 181
    },
    "TimerRepeat": {
    "server.radiation false": 3600,
    "server.radiation true": 300
    }
    }
     
  9. Will having a server restart at 40000 have a negative impact on the server? (Is having this plugin tick in the background heavy on the server)
     
  10. Hey, recently it seems that TimedExecute is no longer giving restart warnings. It worked fine 1~ month ago, and I did update my plugin. This is what the code looks like:
    Code:
      "RealTime-Timer": {
        "11:00:00": "say Restart in 1 hour!",
        "11:30:00": "say Restart in 30 minutes!",
        "11:45:00": "say Restart in 15 minutes!",
        "11:50:00": "say Restart in 10 minutes!",
        "11:51:00": "say Restart in 9 minutes!",
        "11:52:00": "say Restart in 8 minutes!",
        "11:53:00": "say Restart in 7 minutes!",
        "11:54:00": "say Restart in 6 minutes!",
        "11:55:00": "say Restart in 5 minutes!",
        "11:56:00": "say Restart in 4 minutes!",
        "11:57:00": "say Restart in 3 minutes!",
        "11:57:55": "say Restart in 2 minutes!",
        "11:58:10": "server.save",
        "11:59:45": "crafting.cancelall",
        "11:59:05": "say Restart in 1 minutes!",
        "12:00:08": "say Server will be back up shortly!",
        "12:00:05": "save",
        "23:00:00": "say Restart in 1 hour!",
        "23:30:00": "say Restart in 30 minutes!",
        "23:45:00": "say Restart in 15 minutes!",
        "23:50:00": "say Restart in 10 minutes!",
        "23:51:00": "say Restart in 9 minutes!",
        "23:52:00": "say Restart in 8 minutes!",
        "23:53:00": "say Restart in 7 minutes!",
        "23:54:00": "say Restart in 6 minutes!",
        "23:55:00": "say Restart in 5 minutes!",
        "23:56:00": "say Restart in 4 minutes!",
        "23:57:00": "say Restart in 3 minutes!",
        "23:58:05": "say Restart in 2 minutes!",
        "23:58:05": "server.save",
        "23:59:05": "say Restart in 1 minutes!",
        "23:59:45": "crafting.cancelall",
        "23:59:48": "say Server will be back up shortly!",
        "01:00:00": "server.save"
      },
     
    Last edited by a moderator: Aug 24, 2017
  11. upload your config file
    I can tell you cant put the same thing twice
     
  12. Alright here it is // It's running the TimerRepeat commands btw
     

    Attached Files:

  13. Test this and you had a lot to fix this is why it took a while to repost
     

    Attached Files:

  14. Thanks man you're the most helpful person I've seen on here
     
  15. Happy to help
     
  16. ... works fine, but i have nice Idea: RandomTimer ;)
     
  17. I'm trying to get 4 helis to spawn every hour. I've tried using this, but it doesn't seem to be working.
    I'm using TimedExecute in conjunction with HeliControl.

    TimedExecute Config
    Code:
    {
      "EnableInGameTime-Timer": false,
      "EnableRealTime-Timer": false,
      "EnableTimerOnce": true,
      "EnableTimerRepeat": true,
      "InGameTime-Timer": {
        "01:00": "weather rain",
        "12:00": "command 1",
        "15:00": "command 2"
      },
      "RealTime-Timer": {
        "16:00:00": "command1 arg",
        "16:30:00": "command2 arg",
        "17:00:00": "command3 arg",
        "18:00:00": "command4 arg"
      },
      "TimerOnce": {
        "callheli": 3600,
        "callheli": 3605,
        "callheli": 3610,
        "callheli": 3615,
        "reset.timeronce": 3640
      },
      "TimerRepeat": {
        "rof.onposition 1417 67": 1800   
      }
    }
    HeliControl Config
    Code:
      "Spawning - Automatically call helicopter after this many seconds": 0.0,
      "Spawning - Automatically call helicopter if one is already flying": true,
      "Spawning - Disable Helicopter": false,
      "Spawning - Disable helicopter gibs": false,
      "Spawning - Disable helicopter napalm": false,
      "Spawning - Disable Rust's default spawns": true,
      "Spawning - Max active helicopters": 4,
      "Spawning - Use custom helicopter spawns": false,
    Any assistance is much appreciated.
     
    Last edited by a moderator: Aug 24, 2017
  18. use the HeliControl plugin to do that would be better
     
  19. I couldn't get it to work just with HeliControl, that's why I thought it would work with TimedExecute
     
  20. So im new to all this rust stuff, so could anyone please help as to like how i go about doing this so i can spawn an airdrop every 30 minutes on loop, and heli every 45 minutes on loop?

    ????????
     
    Last edited by a moderator: Aug 24, 2017