1. Very close config :p if you want to restart once a day it should look like
    Remember that the command reset.oncetimer just sets the config to start from the top again to the bottom :)
    ALSO
    After the "restart" the server loads again the plugin so no need to reset the timer :)
    Code:
    {
      "EnableTimerOnceCommands": "true",
      "EnableTimerRepeatCommands": "true",
      "OnceCommands": [
        {
          "command": "restart",
          "seconds": 86400
        }
      ],
      "RepeaterCommands": [
        {
          "command": "stability.updateall",
          "seconds": 300
        }
      ]
    }
     
  2. Is there a automatic 60 second timer broadcast before the restart using that command?

     
  3. As i remember yes this command broadcast a message that in 60secs restart and other stuff so i'm pretty sure ... yes
    [DOUBLEPOST=1433939882,1433864559][/DOUBLEPOST]
    I know you posted it a long time ago.. but hope u saw the new update ..
     
  4. Well that will teach me to not check the config after adding a plugin, just restarted my server at full pop >_< i suggest a simpler starter config jesus.
     
  5. This is the config I use to restart my server. (NOTE: My host reboots the server to come back up, restart doesn't make it come back up by itself!!!)

    Code:
    {
      "EnableTimerOnceCommands": "true",
      "EnableTimerRepeatCommands": "true",
      "OnceCommands": [
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 5 hours!'",
          "seconds": 350
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 4 hours!'",
          "seconds": 3600
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 3 hours!'",
          "seconds": 7200
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 2 hours!'",
          "seconds": 10800
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 1 hour!'",
          "seconds": 14400
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 30 minutes!'",
          "seconds": 16200
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 15 minutes!'",
          "seconds": 17100
        },
        {
          "command": "say 'Server <color=orange>AUTOMATIC</color> Restart in 5 minutes!'",
          "seconds": 17700
        },
        {
          "command": "server.save",
          "seconds": 17998
        },
        {
          "command": "say 'Server is Restarting <color=red>NOW</color>!!!'",
          "seconds": 17999
        },
        {
          "command": "restart",
          "seconds": 18000
        },
        {
          "command": "reset.oncetimer",
          "seconds": 18001
        }
      ],
      "RepeaterCommands": []
    }
     
  6. Well... i'm gonna change the default one in a sec thanks for the suggestion.
    I'm Sorry.
    [DOUBLEPOST=1434101533][/DOUBLEPOST]
    Code:
      "EnableTimerOnceCommands": "true",
      "EnableTimerRepeatCommands": "true",
    
    I see you do not user the Repeater.. its better to set it "false"
     
    Last edited by a moderator: Jun 12, 2015
  7. PaiN updated TimedExecute with a new update entry:

    Config Edit


    [DOUBLEPOST=1434105384][/DOUBLEPOST]
    Thanks for sharing your configurations with us!
    From now everyone that shares his config i will add it to the plugin's FAQ page: http://oxidemod.org/plugins/timedexecute.919/field?field=faq
     
  8. PaiN updated TimedExecute with a new update entry:

    Automatic Config updating

     
  9. Firstly I'd like to add my config. It is a 6-hourly restart with Deathmatch Arena every 2 hours.
    Code:
    {
      "ConfigCode": "1",
      "EnableTimerOnceCommands": "true",
      "EnableTimerRepeatCommands": "true",
      "OnceCommands": [
        {
          "command": "say '<color=orange>Server restart in 6 hours!</color>'",
          "seconds": 180
        },
        {
          "command": "oxide.reload EventManager",
          "seconds": 300
        },
        {
          "command": "oxide.reload ArenaDeathmatch",
          "seconds": 320
        },
        {
          "command": "event.game Deathmatch",
          "seconds": 360
        },
        {
          "command": "event.spawnfile DeathmatchSpawnfile",
          "seconds": 365
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>'",
          "seconds": 1560
        },
        {
          "command": "event.open",
          "seconds": 1680
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 1740
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 1741
        },
        {
          "command": "event.start",
          "seconds": 1800
        },
        {
          "command": "event.end",
          "seconds": 3300
        },
        {
          "command": "say '<color=orange>Server restart in 5 hours!</color>'",
          "seconds": 3600
        },
        {
          "command": "say '<color=orange>Server restart in 4 hours!</color>'",
          "seconds": 7200
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>'",
          "seconds": 8760
        },
        {
          "command": "event.open",
          "seconds": 8880
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 8940
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 8941
        },
        {
          "command": "event.start",
          "seconds": 9000
        },
        {
          "command": "event.end",
          "seconds": 10500
        },
        {
          "command": "say '<color=orange>Server restart in 3 hours!</color>'",
          "seconds": 10800
        },
        {
          "command": "say '<color=orange>Server restart in 2 hours!</color>'",
          "seconds": 14400
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>'",
          "seconds": 15960
        },
        {
          "command": "event.open",
          "seconds": 16080
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 16140
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 16141
        },
        {
          "command": "event.start",
          "seconds": 16200
        },
        {
          "command": "event.end",
          "seconds": 17700
        },
        {
          "command": "say '<color=orange>Server restart in 1 hours!</color>'",
          "seconds": 18000
        },
        {
          "command": "say '<color=orange>Server restart in 30 minutes!</color>'",
          "seconds": 19800
        },
        {
          "command": "say '<color=orange>Server restart in 15 minutes!</color>'",
          "seconds": 20700
        },
        {
          "command": "say '<color=orange>Server restart in 5 minutes!</color>'",
          "seconds": 21300
        },
        {
          "command": "server.save",
          "seconds": 21580
        },
        {
          "command": "say '<color=orange>Get to safety, server is restarting!</color>'",
          "seconds": 21581
        },
        {
          "command": "restart",
          "seconds": 21600
        }
      ],
      "RepeaterCommands": [
        {
          "command": "server.save",
          "seconds": 3000
        }
      ]
    }
    

    Secondly, what the hell am I doing wrong. I have installed your plugin, which inserts your default config, but any changes I make to it do not take effect. I have reloaded the plugin "oxide.reload p-TimedExecute" and restarted the server after making the changes. Even though I can see the config file with the changes I still get messages about Paypal, Twitter, Facebook and airdrops. I am using Multiplay hosting, is this a problem anyone else has seen?

    Edit: Orignial config edited after discussion with PaiN.
     
    Last edited by a moderator: Jun 15, 2015
  10. You used the config from the overview.. i forgot to update the default config from the overview... your config should look like:
    You probably removed the ConfigCode line which is very important or you copied the config from the overview which is my fault :p
    Code:
    {
      "ConfigCode": "1",
      "EnableTimerOnceCommands": "true",
      "EnableTimerRepeatCommands": "true",
      "OnceCommands": [
        {
          "command": "say '<color=orange>Server restart in 6 hours!</color>'",
          "seconds": 180
        },
        {
          "command": "oxide.reload EventManager",
          "seconds": 300
        },
        {
          "command": "oxide.reload ArenaDeathmatch",
          "seconds": 320
        },
        {
          "command": "event.game Deathmatch",
          "seconds": 360
        },
        {
          "command": "event.spawnfile DeathmatchSpawnfile",
          "seconds": 365
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>",
          "seconds": 1560
        },
        {
          "command": "event.open",
          "seconds": 1680
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 1740
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 1741
        },
        {
          "command": "event.start",
          "seconds": 1800
        },
        {
          "command": "event.end",
          "seconds": 3300
        },
        {
          "command": "say '<color=orange>Server restart in 5 hours!</color>'",
          "seconds": 3600
        },
        {
          "command": "say '<color=orange>Server restart in 4 hours!</color>'",
          "seconds": 7200
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>",
          "seconds": 8760
        },
        {
          "command": "event.open",
          "seconds": 8880
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 8940
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 8941
        },
        {
          "command": "event.start",
          "seconds": 9000
        },
        {
          "command": "event.end",
          "seconds": 10500
        },
        {
          "command": "say '<color=orange>Server restart in 3 hours!</color>'",
          "seconds": 10800
        },
        {
          "command": "say '<color=orange>Server restart in 2 hours!</color>'",
          "seconds": 14400
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>",
          "seconds": 15960
        },
        {
          "command": "event.open",
          "seconds": 16080
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 16140
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 16141
        },
        {
          "command": "event.start",
          "seconds": 16200
        },
        {
          "command": "event.end",
          "seconds": 17700
        },
        {
          "command": "say '<color=orange>Server restart in 1 hours!</color>'",
          "seconds": 18000
        },
        {
          "command": "say '<color=orange>Server restart in 30 minutes!</color>'",
          "seconds": 19800
        },
        {
          "command": "say '<color=orange>Server restart in 15 minutes!</color>'",
          "seconds": 20700
        },
        {
          "command": "say '<color=orange>Server restart in 5 minutes!</color>'",
          "seconds": 21300
        },
        {
          "command": "server.save",
          "seconds": 21580
        },
        {
          "command": "say '<color=orange>Get to safety, server is restarting!</color>'",
          "seconds": 21581
        },
        {
          "command": "restart",
          "seconds": 21600
        }
      ],
      "RepeaterCommands": [
        {
          "command": "server.save",
          "seconds": 3000
        }
      ]
    }
    
     
    Last edited by a moderator: Jun 15, 2015
  11. Wow, that was quick. Thanks PaiN.
    If you add this one to the FAQ, please change "event.stop" to "event.end" facepalm! I've changed it in my post.
     
  12. I will ask Wulf about how to make show/hide spoilers ;/ and then i will paste it
    [DOUBLEPOST=1434369180][/DOUBLEPOST]
    Also if it's possible just add the ConfigCode line to your original post with your config so other users wont have problems :p
     
  13. I have inserted the fixed config

    Code:
    {
      "ConfigCode": "1",
      "EnableTimerOnceCommands": "true",
      "EnableTimerRepeatCommands": "true",
      "OnceCommands": [
        {
          "command": "say '<color=orange>Server restart in 6 hours!</color>'",
          "seconds": 180
        },
        {
          "command": "oxide.reload EventManager",
          "seconds": 300
        },
        {
          "command": "oxide.reload ArenaDeathmatch",
          "seconds": 320
        },
        {
          "command": "event.game Deathmatch",
          "seconds": 360
        },
        {
          "command": "event.spawnfile DeathmatchSpawnfile",
          "seconds": 365
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>'",
          "seconds": 1560
        },
        {
          "command": "event.open",
          "seconds": 1680
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 1740
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 1741
        },
        {
          "command": "event.start",
          "seconds": 1800
        },
        {
          "command": "event.end",
          "seconds": 3300
        },
        {
          "command": "say '<color=orange>Server restart in 5 hours!</color>'",
          "seconds": 3600
        },
        {
          "command": "say '<color=orange>Server restart in 4 hours!</color>'",
          "seconds": 7200
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>'",
          "seconds": 8760
        },
        {
          "command": "event.open",
          "seconds": 8880
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 8940
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 8941
        },
        {
          "command": "event.start",
          "seconds": 9000
        },
        {
          "command": "event.end",
          "seconds": 10500
        },
        {
          "command": "say '<color=orange>Server restart in 3 hours!</color>'",
          "seconds": 10800
        },
        {
          "command": "say '<color=orange>Server restart in 2 hours!</color>'",
          "seconds": 14400
        },
        {
          "command": "say '<color=orange>Registartion for event will open in 2 minutes</color>'",
          "seconds": 15960
        },
        {
          "command": "event.open",
          "seconds": 16080
        },
        {
          "command": "say '<color=orange>Event will start in 1 minute. Type /event_join to join.</color>'",
          "seconds": 16140
        },
        {
          "command": "say '<color=orange>When joining the event, put you gear away. You may not get it back.</color>'",
          "seconds": 16141
        },
        {
          "command": "event.start",
          "seconds": 16200
        },
        {
          "command": "event.end",
          "seconds": 17700
        },
        {
          "command": "say '<color=orange>Server restart in 1 hours!</color>'",
          "seconds": 18000
        },
        {
          "command": "say '<color=orange>Server restart in 30 minutes!</color>'",
          "seconds": 19800
        },
        {
          "command": "say '<color=orange>Server restart in 15 minutes!</color>'",
          "seconds": 20700
        },
        {
          "command": "say '<color=orange>Server restart in 5 minutes!</color>'",
          "seconds": 21300
        },
        {
          "command": "server.save",
          "seconds": 21580
        },
        {
          "command": "say '<color=orange>Get to safety, server is restarting!</color>'",
          "seconds": 21581
        },
        {
          "command": "restart",
          "seconds": 21600
        }
      ],
      "RepeaterCommands": [
        {
          "command": "server.save",
          "seconds": 3000
        }
      ]
    }

    reloaded plugin but still get

    13:03.39: [RCON][46.101.17.108:61282] oxide.reload p-TimedExecute
    13:03.39: [Oxide] 1:03 PM [Info] Unloaded plugin PaiN TimedExecute v2.2.0 by PaiN
    13:03.39: [Oxide] 1:03 PM [Info] Loaded plugin PaiN TimedExecute v2.2.0 by PaiN
    13:03.39: [Oxide] 1:03 PM [Info] [PaiN TimedExecute] Timer-Once is ON
    13:03.39: [Oxide] 1:03 PM [Info] [PaiN TimedExecute] Timer-Repeat is ON
    13:04.11: Save took: 0.77 seconds
    13:04.11: Save stats:
    13:04.11: ents: 76925
    13:04.11: size: 6370762
    13:04.16: Reporting Performance Data system/server
    13:04.39: [Oxide] 1:04 PM [Info] [PaiN TimedExecute] Ran command: say 'You can donate via PayPal!'
    13:05.09: [Oxide] 1:05 PM [Info] [PaiN TimedExecute] Ran command: say 'Vote for our server to receive awesome rewards!'
    Any suggestions?

    PS. To add a spoiler. type:
    Code:
    [SPOILER=Spoiler Title]
    Text
    [/SPOILER]
    
    Link to the information http://oxidemod.org/help/bb-codes
     
    Last edited by a moderator: Jun 15, 2015
  14. Hmm weird give me a sec and i will post an update in a sec
     
  15. PaiN updated TimedExecute with a new update entry:

    Config save fix

     
  16. possible to execute dependant on Time rather than seconds? , i.e restart at 6am
     
  17. I think you can calculate it .. with the Timer Once

    Maths..
     
  18. yeh if i wake up at 6am to set it in the first place otherwise it will decrease/increase every day... Logic...
     
  19. Once i figure out how to do it i will post an update..