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. Yes it can be done this will announce every week

    "TimerOnce": {
    "reset.timeronce": 10081,
    "Wipe happening 06/29/2017": 10080
    },
    put what message you want inside the "
     
  2. Here is my config file:

    {
    "EnabledRealTime-Timer": true,
    "EnableTimerOnce": false,
    "EnableTimerRepeat": true,
    "RealTime-Timer": {
    "18:59:00": "say Scheduled server restart to prevent stalling and crashes, will start in 1 minute",
    "18:59:59": "say The server is going to restart soon, it doesn't take long for it to come back up. While you're waiting, go vote up the server on www.rust-servers.info, every vote helps gain more players!",
    "19:00:00": "restart",
    "01:35:00": "say will be removing all entities not covered by a tool cupboard in 10 minutes",
    "01:40:00": "say if you have entities outside of cupboard radius, they will be deleted in 5 minutes, so get those tool cupboards up!. This is you last warning. This is an automated warning.",
    "01:45:00": "block.removeall",
    "06:59:00": "say Scheduled server restart to prevent stalling and crashes, will start in 1 minute",
    "06:59:59": "say The server is going to restart soon, it doesn't take long for it to come back up. While you're waiting, go vote up the server on www.rust-servers.info, every vote helps gain more players!",
    "07:00:00": "restart"
    },
    "TimerOnce": {
    "command1 'msg'": 60,
    "command2 'msg'": 120,
    "command3 arg": 180,
    "command4 arg": 181
    },
    "TimerRepeat": {
    "callheli": 3600,


    }
    }
     
  3. "callheli": 3600,
    remove the , <--------
    Next time upload the file not paste
     
    Last edited by a moderator: Jun 27, 2017
  4. I still get the same result, here is my config file now
     

    Attached Files:

  5. you cant just delete things from the config and leave blank lines I will not be fixing this I already told you to delete the ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, not the whole line
     
  6. Oh sorry about that. I didn't notice that you had the comma colored with the arrows. I'm fixing it now, I'll let you know how it goes.
     
  7. You have more than the bottom part to fix the top part you removed as well
     
  8. Turns out, I had a really old config file, but I was using a current version of the plugin. All I had to do was delete it and start fresh, now everything works fine.

    Thanks Resistance. You're a rockstar. I appreciated the effort you put to all of this.
     
  9. i recently tried to add a timer as a chat message to this code that i edit that switches up spawn.config files every 15 minutes. could someone please tell me what i could be doing wrong here to make this not work at all?

    Code:
    {
      "EnableInGameTime-Timer": true,
      "EnableRealTime-Timer": true,
      "EnableTimerOnce": true,
      "EnableTimerRepeat": true,  "RealTime-Timer": {
      },
      "TimerOnce": {
        "say Changing map in 10 seconds": 890,   
        "say Changing map in 9 seconds": 891, 
        "say Changing map in 8 seconds": 892, 
        "say Changing map in 7 seconds": 893, 
        "say Changing map in 6 seconds": 894, 
        "say Changing map in 5 seconds": 895, 
        "say Changing map in 4 seconds": 896, 
        "say Changing map in 3 seconds": 897, 
        "say Changing map in 2 seconds": 898, 
        "say Changing map in 1 seconds": 899, 
        "spawns.config hex": 900,
        "say Now playing Hex Arena. Type "kill" in F1 Console to respawn in the new map.": 901,
        "say Changing map in 10 seconds": 1790,   
        "say Changing map in 9 seconds": 1791, 
        "say Changing map in 8 seconds": 1792, 
        "say Changing map in 7 seconds": 1793, 
        "say Changing map in 6 seconds": 1794, 
        "say Changing map in 5 seconds": 1795, 
        "say Changing map in 4 seconds": 1796, 
        "say Changing map in 3 seconds": 1797, 
        "say Changing map in 2 seconds": 1798, 
        "say Changing map in 1 seconds": 1799, 
        "spawns.config fish2": 1800,
        "say Now playing Fish2 Arena. Type "kill" in F1 Console to respawn in the new map.": 1801,
        "say Changing map in 10 seconds": 2690,   
        "say Changing map in 9 seconds": 2691, 
        "say Changing map in 8 seconds": 2692, 
        "say Changing map in 7 seconds": 2693, 
        "say Changing map in 6 seconds": 2694, 
        "say Changing map in 5 seconds": 2695, 
        "say Changing map in 4 seconds": 2696, 
        "say Changing map in 3 seconds": 2697, 
        "say Changing map in 2 seconds": 2698, 
        "say Changing map in 1 seconds": 2699, 
        "spawns.config hex3": 2700,
        "say Now playing Hex3 Arena. Type "kill" in F1 Console to respawn in the new map.": 2701,
        "say Changing map in 10 seconds": 3590,   
        "say Changing map in 9 seconds": 3591, 
        "say Changing map in 8 seconds": 3592, 
        "say Changing map in 7 seconds": 3593, 
        "say Changing map in 6 seconds": 3594, 
        "say Changing map in 5 seconds": 3595, 
        "say Changing map in 4 seconds": 3596, 
        "say Changing map in 3 seconds": 3597, 
        "say Changing map in 2 seconds": 3598, 
        "say Changing map in 1 seconds": 3599, 
        "spawns.config lighthouse": 3600,
        "say Now playing Lighthouse Arena. Type "kill" in F1 Console to respawn in the new map.": 3600,
        "reset.timeronce": 3601
      },
      "TimerRepeat": {
      
      }
    }
     
  10. You cant keep repeating the same wording over and over even if it has a different time at the end also you cant have "kill" it needs to remove " from each side also you cant have it black under "TimerRepeat": {
     
  11. thanks for the response. the 'kill' part really helped and i think this is working now. i shortened everything as well. i'll try scheduling this under TimerRepeat one day. this was my first attempt, thanks!

    Code:
    {
      "EnableInGameTime-Timer": true,
      "EnableRealTime-Timer": true,
      "EnableTimerOnce": true,
      "EnableTimerRepeat": true,  "RealTime-Timer": {
      },
      "TimerOnce": {
        "say Changing map in 10 seconds": 890,
        "say Changing map in 3 seconds": 897,
        "spawns.config hex": 900,
        "say Now playing Hex Arena. Type 'kill' in F1 Console to respawn in the new map.": 901,
        "say Changing map in 10 seconds": 1790,
        "say Changing map in 3 seconds": 1797,
        "spawns.config fish2": 1800,
        "say Now playing Fish2 Arena. Type 'kill' in F1 Console to respawn in the new map.": 1801,
        "say Changing map in 10 seconds": 2690,   
        "say Changing map in 3 seconds": 2697, 
        "spawns.config hex3": 2700,
        "say Now playing Hex3 Arena. Type 'kill' in F1 Console to respawn in the new map.": 2701,
        "say Changing map in 10 seconds": 3590,   
        "say Changing map in 3 seconds": 3597, 
        "spawns.config lighthouse": 3600,
        "say Now playing Lighthouse Arena. Type 'kill' in F1 Console to respawn in the new map.": 3600,
        "reset.timeronce": 3601
      },
      "TimerRepeat": {
      
      }
    }
     
  12. You still had mistakes here is the fix
     

    Attached Files:

    Last edited by a moderator: Jun 27, 2017
  13. Hello, I was wondering if it was possible to use this plugin to change the config settings for other plugins, and reload the selected plugin all using this command? I wish to use it to change the gather rate in my server from 2x to 3x during nights only.
     
  14. There is already a plugin that does that for gather rates diff night and day
     
  15. hey resistance, thanks so much for the help! that works!

    can you clarify why the server announcement/countdown cant repeat a countdown with the same numerals? that's what i noticed in the config. if that's what i gotta do, then it's fine. it's works. i'd love a 10 second count down before each timed command that changes my spawn config.

    another question, does anyone know how i can add a timed execute for an oxide plugin command? say, i want enable '/kit edit autokit', 'kit [KIT NAME]', '/kit items' to change what you respawn with every 15 minutes. if oxide commands do not work in timed execute, i guess i'll look for a non-plugin command to set this up.
     
  16. fixed it was a error my end
     
    Last edited by a moderator: Jun 29, 2017
  17. how its possible to set each 2 hours an random weather? If their any posibility?
     
  18. Code:
    {
      "EnableInGameTime-Timer": false,
      "EnableRealTime-Timer": true,
      "EnableTimerOnce": false,
      "EnableTimerRepeat": true,
      "InGameTime-Timer": {
        "02:45": "weather rain",
        "12:00": "command 1",
        "15:00": "command 2"
      },
      "RealTime-Timer": {
        "02:45:00": "say Der Server wird in 15 Minuten neu gestartet",
        "02:50:00": "say Der Server wird in 10 Minuten neu gestartet",
        "02:55:00": "say Der Server wird in 5 Minuten neu gestartet",
        "02:59:00": "say Der Server wird in 1 Minute neu gestartet"
      },
      "TimerOnce": {
        "command1 'msg'": 60,
        "command2 'msg'": 120,
        "command3 arg": 180,
        "reset.timeronce": 181
      },
      "TimerRepeat": {
        "say EVENT: Gratis Items jede 45 Minuten": 3600,
        "say Teamspeak Server: ts.gamers.li": 1900,
        "rgive all": 1900
      }
    }
    wy it dont work? say message evry hour and rgive evry 45 minutes? Please help
     
  19. Code:
    {
      "EnableInGameTime-Timer": false,
      "EnableRealTime-Timer": true,
      "EnableTimerOnce": false,
      "EnableTimerRepeat": true,
      "InGameTime-Timer": {
        "02:45": "weather rain",
        "12:00": "command 1",
        "15:00": "command 2"
      },
      "RealTime-Timer": {
        "02:45:00": "say Der Server wird in 15 Minuten neu gestartet",
        "02:50:00": "say Der Server wird in 10 Minuten neu gestartet",
        "02:55:00": "say Der Server wird in 5 Minuten neu gestartet",
        "02:59:00": "say Der Server wird in 1 Minute neu gestartet",   
        "02:59:59": "server.save",
        "03:00:00": "restart 0"
      },
      "TimerOnce": {
        "command1 'msg'": 60,
        "command2 'msg'": 120,
        "command3 arg": 180,
        "reset.timeronce": 181
      },
      "TimerRepeat": {
        "say EVENT: Gratis Items jede 45 Minuten": 3600,
        "say Teamspeak Server: ts.gamers.li": 1900,
        "rgive all": 1900
      }
    }
    your give all you need to put what you are giving
     
  20. I've a suggestion for the realtime timer, I want to excecute a command to a specefic day, like: monday and friday command1, wedsnesday and sunday command2 etc, not daily commands but weekly command ;)