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. show me your config.
     
  2. {
    "EnabledRealTime-Timer": true,
    "EnableTimerOnce": false,
    "EnableTimerRepeat": false,
    "RealTime-Timer": {
    "02:59:30": "say The server is saving in 30 seconds. Automatic server reboot return to your homes",
    "02:59:31": "server.save",
    "03:00:00": "say The server will reboot in 10 minutes",
    "03:00:01": "restart 600",
    "03:09:00": "say The server is saving",
    "03:09:01": "server.save",
    "14:59:30": "say The server is saving in 30 seconds. Automatic server reboot return to your homes",
    "14:59:31": "server.save",
    "15:00:00": "say The server will reboot in 10 minutes",
    "15:00:01": "restart 600",
    "15:09:00": "say The server is saving",
    "15:09:01": "server.save"
    },
    "TimerOnce": {
    "command1 'msg'": 60,
    "command2 'msg'": 120,
    "command3 arg": 180,
    "command4 arg": 181
    },
    "TimerRepeat": {
    "command1 arg": 300,
    "command2 'msg'": 300
    }
    }
     
  3. Hi there,
    is there a way to control a zone over this?

    I have a zone let's call it 123456
    and normally there are the flags:
    nogather true,
    autolights true,

    now I want the zone to deactivate those falgs ( nogather false, autolights false,) two times every day, let's say at 13:00 and 22:00 o'clock
    and let it like this for 30 Minutes, after this event it should switch back to true.

    Is there a way to realize this with this plugin ?
     
  4. Well "This plugin only runs console commands"

    What does that mean?
    -If the plugin that you are trying to set zones and change their settings has a console command for a example "zone.edit <zoneId> <setting> <setting argument>" and you can simply run it.
     
  5. nice, I didn't even know that it is possible to config a zone via console but yes it works.
    So I can try around till wipe tomorrow.
    Thank you very much :)
     
  6. Server crashes with this and half of players bases gets deleted anyone else have this issue?
     
  7. A plugin that runs commands removes bases?
     
  8. Would be nice if someone could do a script that restarts every 6 hours with warnings 30mins away, 10mins away 5mins away, 1min away and then a 10second count down, is that possible?

    Would be great if we could give people Large Presentsx10 every hour too for playing :D
     
  9. I am VERY new to this and just started a PVE server yesterday. There are a couple of things I would like to be done automatically, but other than having this plugin I'm not sure what it should look like. First, I would like it to inventory.giveall supply signal 1 about every three hours. I can do this using Rusty, but I would like it to automatically do this without having to have that running. Also, I would like it to save my server and reboot every day at 3:00AM. In addition, i would like to give a warning in chat an hour before, 30 minutes before, 10 minutes before and probably a minute or so before. The problem is, I have no idea what this should look like. When I did a test one, it didn't work at all. Any help would be greatly appreciated!
     
  10. I have a question. Is there a way to set commands based off the in game time? I run a server and I want to change the gather rate and XP boost based on the time of day in game.
     
  11. Well I dont know if its possible to check for the in-game time in covalence... but if needed I think I will be able to add it for some games.
     
  12. I know the addon NightLantern for Rust | Oxide checks for server time of day some how.. or how would it know when to turn on or off the lights?
     
  13. Well.. I think that you can clearly see that this plugin is Universal. I will see what I can do later.
     
  14. I have no clue what that means... I dont write code or ever pretend how to. All I know is it checks the game time some how so I thought I would offer it as a suggestion that may help in my request.
     
  15. i need 6 Hours Counter Restart someone can give me?
     
  16. @PaiN
    [Oxide] 14:22 [Error] Failed to run a 1800.00 timer in 'TimedExecute v0.2.0' (ArgumentNullException: Argument cannot be null.
    Parameter name: array)
    [Oxide] 14:22 [Debug] at System.Array.ConvertAll[Object,String] (System.Object[] array, System.Converter`2 converter) [0x00000] in <filename unknown>:0
    at Oxide.Game.Hurtworld.Libraries.Covalence.HurtworldServer.Command (System.String command, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.TimedExecute+<RunRepeater>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0

    [Oxide] 14:52 [Error] Failed to run a 3600.00 timer in 'TimedExecute v0.2.0' (ArgumentNullException: Argument cannot be null.
    Parameter name: array)
    [Oxide] 14:52 [Debug] at System.Array.ConvertAll[Object,String] (System.Object[] array, System.Converter`2 converter) [0x00000] in <filename unknown>:0
    at Oxide.Game.Hurtworld.Libraries.Covalence.HurtworldServer.Command (System.String command, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.TimedExecute+<RunRepeater>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Aug 5, 2016
  17. Show me your config.
     
  18. {
    "EnabledRealTime-Timer": true,
    "EnableTimerOnce": false,
    "EnableTimerRepeat": true,
    "RealTime-Timer": {
    "01:15:00": "adminmessage 'The Purge will start in 15 minutes'",
    "01:25:00": "adminmessage 'The Purge will start in 5 minutes'",
    "01:29:00": "adminmessage 'The Purge will start in 1 minute'",
    "01:29:30": "adminmessage 'The Purge will start in 30 seconds'",
    "01:29:50": "adminmessage 'The Purge will start in 10 seconds'",
    "01:29:59": "adminmessage 'THE PURGE HAS BEGUN!!!!FULL LOOT ENABLED!!!!'",
    "01:30:00": "playerlootmode 3",
    "02:15:00": "adminmessage 'The Purge will end in 15 minutes'",
    "02:25:00": "adminmessage 'The Purge will end in 5 minutes'",
    "02:29:00": "adminmessage 'The Purge will end in 1 minute'",
    "02:29:30": "adminmessage 'The Purge will end in 30 seconds'",
    "02:29:50": "adminmessage 'The Purge will end in 10 seconds'",
    "02:29:59": "adminmessage 'THE PURGE HAS ENDED!!!!DEFAULT LOOT ENABLED!!!!'",
    "02:30:00": "playerlootmode 2",
    "10:45:00": "adminmessage 'Restart in 15 minutes'",
    "10:50:00": "adminmessage 'Restart in 10 minutes..progress may be lost past this point'",
    "10:55:00": "adminmessage 'Restart in 5 minutes..progress may be lost past this point'",
    "10:55:30": "saveserver",
    "10:59:00": "adminmessage 'Restart in 1 minute..progress may be lost past this point'",
    "10:59:30": "adminmessage 'Restart in 30 seconds..progress may be lost past this point'",
    "10:59:50": "adminmessage 'Restart in 10 seconds..progress may be lost past this point'",
    "10:59:59": "quit",
    "13:15:00": "adminmessage 'The Purge will start in 15 minutes'",
    "13:25:00": "adminmessage 'The Purge will start in 5 minutes'",
    "13:29:00": "adminmessage 'The Purge will start in 1 minute'",
    "13:29:30": "adminmessage 'The Purge will start in 30 seconds'",
    "13:29:50": "adminmessage 'The Purge will start in 10 seconds'",
    "13:29:59": "adminmessage 'THE PURGE HAS BEGUN!!!!FULL LOOT ENABLED!!!!'",
    "13:30:00": "playerlootmode 3",
    "14:15:00": "adminmessage 'The Purge will end in 15 minutes'",
    "14:25:00": "adminmessage 'The Purge will end in 5 minutes'",
    "14:29:00": "adminmessage 'The Purge will end in 1 minute'",
    "14:29:30": "adminmessage 'The Purge will end in 30 seconds'",
    "14:29:50": "adminmessage 'The Purge will end in 10 seconds'",
    "14:29:59": "adminmessage 'THE PURGE HAS ENDED!!!!DEFAULT LOOT ENABLED!!!!'",
    "14:30:00": "playerlootmode 2",
    "22:45:00": "adminmessage 'Restart in 15 minutes'",
    "22:50:00": "adminmessage 'Restart in 10 minutes..progress may be lost past this point'",
    "22:55:00": "adminmessage 'Restart in 5 minutes..progress may be lost past this point'",
    "22:55:30": "saveserver",
    "22:59:00": "adminmessage 'Restart in 1 minute..progress may be lost past this point'",
    "22:59:30": "adminmessage 'Restart in 30 seconds..progress may be lost past this point'",
    "22:59:50": "adminmessage 'Restart in 10 seconds..progress may be lost past this point'",
    "22:59:59": "quit"
    },
    "TimerOnce": {
    "adminmessage 'Dont forget to like our fanpage!'": 60,
    "adminmessage 'Follow us on Twitter!'": 120,
    "adminmessage 'You can donate via PayPal!'": 180
    },
    "TimerRepeat": {
    "adminmessage 'Join our Steam Group for server rules <color=#00CD00>Steam Community :: Error'": 2930,
    "adminmessage 'SAVE YOUR RUBIES AS THEY ARE A NEW CURRENCY HERE..<color=#00CD00>INTERACTIVE MAP FOUND HERE: Hurtworld Map - Interactive map for Hurtworld'": 3600,
    "saveserver": 1800
    }
    }
    [DOUBLEPOST=1470396148][/DOUBLEPOST]It started happening right after the hurtworld update yesterday...prior to that it was working fine and I changed nothing.

    not showing up correctly here, try this { "EnabledRealTime-Timer": true, "EnableTimerOnce": false, "EnableTimerRepeat - Pastebin.com
     
    Last edited by a moderator: Aug 5, 2016
  19. this should work reign of kings?
    its not runn commands for console or do anything
     
  20. @PaiN Any news on what could be causing the issue?