Timed Execute

Execute commands every (x) seconds.

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

5/5, 16 likes
  1. @PaiN Awesome work man! :) works perfectly, no error :)
    Code:
    (16:59:56) | [Oxide] 17:00 [Info] [HeliControl] Helicopter Inbound!
    (16:59:56) | [Oxide] 17:00 [Info] [Timed Execute] ran CMD: callheli || ARGS:
    (16:59:58) | [Oxide] 17:00 [Info] [HeliControl] Helicopter Inbound!
    (16:59:58) | [Oxide] 17:00 [Info] [Timed Execute] ran CMD: callheli || ARGS:
    (17:00:00) | [Oxide] 17:00 [Info] [HeliControl] Helicopter Inbound!
    (17:00:00) | [Oxide] 17:00 [Info] [Timed Execute] ran CMD: callheli || ARGS:
     
  2. "TimerOnce": {
    "reset.oncetimer": 21601,
    "say 'Server AUTOMATIC Restart in 6 hours!'": 300,
    "say 'Server AUTOMATIC Restart in 4 hours!'": 7200,
    "say 'Server AUTOMATIC Restart in 3 hours!'": 10800,
    "say 'Server AUTOMATIC Restart in 2 hour!'": 14400,
    "say 'Server AUTOMATIC Restart in 1 hour!'": 18000,
    "say 'Server AUTOMATIC Restart in 15 minutes!'": 20700,
    "say 'Server AUTOMATIC Restart in 5 minutes!'": 21300,
    "event end": 21340,
    "server.save": 21400,
    "say 'Server is Restarting!!!'": 21595,
    "restart 90": 21600
     
  3. What time will this execute the restart, or is there a function to set the time I want it to restart?
     
  4. It the restart cycle once you load the plugin.
     
  5. so 6 hours from when i load the plugin? - is that every 6 hours or at the same time each day?

    Thanks for the quick reply.
     
  6. Load plugin => 6Hours => Restart => Auto-load on restart plugin => 6Hours => Restart .....
     
  7. Hi.
    How would I go about having my server run messages in chat for a restart a 7am and 4pm each day?
    I want the messages showing server restart in: 1 hour, 30 mins, 15 mins, 10 mins, 5 mins, 2 mins, 1 min, 30 secs, 10 secs, 5 secs, Restarting!

    If someone could post a config or help below to post messages in chat for 7am and 4pm each day, that would be amazing! thanks
     
  8. Use the RealTime-Timer, simply just put your own time and the command that you want to run.
     
  9. Thing is which I am confused about..

    In the config, I did the time and that which works fine, but for the message that it displays. I set it to say "Restart in 5 mins" down to "Restart in 1 mins" then "Restarting".

    But somehow it is fetching this from somewhere else, "Restarting in 300 seconds", "Restarting in 295 seconds". Where is it getting this information from rather than what I put in my config?
    [DOUBLEPOST=1471003815][/DOUBLEPOST]Reckon you could possibly send me a config which countsdown: 1 hour, 30 mins, 15 mins, 10 mins, 5 mins, 2 mins, 1 min, restarting for 7am and 4pm scheduled restarts? Would be much appreciated :)
     
  10. I dont have any problems with sending you a ready config :p But just before I do that show me the current config that you have tried.
     
  11. Sure thing.
     

    Attached Files:

  12. Okay so your config looks fine and the message "Restarting in 300 seconds" comes from the global.restart command(default value of restart is 300 seconds). As you can see in the config if change the restart commands to "restart 1" so it restarts in 1 second :p
     

    Attached Files:

  13. Thanks for your help mate, much appreciated!
     
  14. hey man, i've been trying to get flags working for zones with no luck. Would you mind showing me how you structure your commands in timedexecute please

    any help much appreciated

    yakkern
     
  15. Sure,
    this is how my config looks like:
    Code:
    {
    "EnabledRealTime-Timer": true,
    "EnableTimerOnce": false,
    "EnableTimerRepeat": false,
    "RealTime-Timer": {
    "12:30:00": "say >>>>> Die Wärter des Reservats machen nun für eine halbe Stunde Pause. Vielen Dank für ihr Verständnis <<<<<",
    "12:30:01": "zone 31282226 nogather false autolights false",
    "13:00:00": "say >>>>> Das Reservat ist nun wieder für Besucher offen, genießen Sie Ihren Aufenthalt! <<<<<",
    "13:00:01": "zone 31282226 nogather true autolights true",
    "16:30:00": "say >>>>> Die Wärter des Reservats machen nun für eine halbe Stunde Pause. Vielen Dank für ihr Verständnis <<<<<",
    "16:30:01": "zone 31282226 nogather false autolights false",
    "17:00:00": "say >>>>> Das Reservat ist nun wieder für Besucher offen, genießen Sie Ihren Aufenthalt! <<<<<",
    "17:00:01": "zone 31282226 nogather true autolights true",
    "21:30:00": "say >>>>> Die Wärter des Reservats machen nun für eine halbe Stunde Pause. Vielen Dank für ihr Verständnis <<<<<",
    "21:30:01": "zone 31282226 nogather false autolights false",
    "22:00:00": "say >>>>> Das Reservat ist nun wieder für Besucher offen, genießen Sie Ihren Aufenthalt! <<<<<",
    "22:00:01": "zone 31282226 nogather true autolights true"
    },
    "TimerOnce": { },
    "TimerRepeat": {
    "event.run": 300,
    "server.save": 0
    }
    }
    I have a zone where i spawn animals and trees and i only want them to be able to harvest them at certain times,
    so the zone will enable/disable the flags nogather and autolights at the set times.
    (autolights just for letting people know if it is open now or not ;) )

    Hope it helps you
     
  16. thanks man, really appreciate that.

    will report back whether I'm able to replicate :)
     
  17. Hmm well, I am able to type that syntax : zone id flag value into the console and it seems to work fine. As soon as I run it through Timed Execute it throws up the following in console after running [Zone Manager] Zone Id not found or Too few arguments: zone <zoneid> <arg> <value>

    is this because timed execute isn't separating the value from the argument or something? I'm so close to getting this up and running but can't get past this.

    as always any help much appreciated

    yakkern
     
  18. Ah I forgot.
    Sorry, I use the previous version of this plugin.
    Download it from the version history and it should work.

     
  19. ahhh thanks man, now is that previous zone manager or timed execute or both :)

    thanks

    yak
     
  20. Just timed execute ;)
    You are welcome