1. Can someone give me an example of working automatic server restart with warning messages? Thanks!
     
  2. Wulf

    Wulf Community Admin

    You'd need to use a script or external program to actually restart your server. The Rust server cannot automatically restart itself.
     
  3. Well If I add restart in the commands option then it will restart the server right ?
     
    Last edited by a moderator: Jun 7, 2015
  4. Wulf

    Wulf Community Admin

    It will shut the server down, it won't start it back up. The only way your server would start again, is if your host provides some sort of script or software to start it again automatically.
     
  5. Some Hosts offer u Automatic Restart... like Gameservers
     
  6. Well yeah I am hosting gameservers but I want it to happen every 5 hours and with warnings
    [DOUBLEPOST=1433667025][/DOUBLEPOST]So far when I do restart, server has gone down and came back up by itself
    [DOUBLEPOST=1433667052][/DOUBLEPOST]I mean like when I write in rcon restart.
     
  7. You know what ...
    "restart" command for gameservers i think it counts as a real restart :) bcs i had my own server there and "restart" is working properly
     
  8. restart works for me too, im not hosting at gameservers
     
  9. yeah but when I tried to set it up properly

    Code:
    {
      "ShowTimedCommands": "true",
      "TimedCommands": [
        [
          "say 'Server AUTOMATIC restart in 5 Hours'",
          "Interval": 10
        ],
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          "Interval": 20
        ]
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          "Interval": 30
        ]
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          "Interval": 40
        ]
      ]
    }
    In that order they keep coming all at the same time


    Like when 5 hours hits the mark it comes
    then 4 hours starts and after 4 hours finishes it posts 4 hours and 5 hours at the same time, kind of complicated to explain
     
  10. I dont know about other hosts :) but i said gameservers bcs Arru has a server on Gameservers
    [DOUBLEPOST=1433667979][/DOUBLEPOST]
    Its a Repeat Timer not Once
    [DOUBLEPOST=1433668117][/DOUBLEPOST]Also you broke the config there should be an error in your console probably
    it should be
    Code:
    {
      "ShowTimedCommands": "true",
      "TimedCommands": [
        [
          "say 'Server AUTOMATIC restart in 5 Hours'",
          "Interval": 10
        ],
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          "Interval": 20
        ],
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          "Interval": 30
        ],
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          "Interval": 40
        ]
      ]
    }
    You can broadcast like "say 'Automatic Restarts: 17:45, 20:30, 5:00, 6:00 (GMT + 3:00)' "
     
    Last edited by a moderator: Jun 7, 2015
  11. yeah I forgot the "," I know I raw edited it in the post but I mean it doesn't work over time for me, some things get doubleposted.
     
  12. I told you its REPEATER :) so it will broadcast the message every (x) secs and timer keeps going you also added the "Interval"..... not needed

    Code:
    {
      "ShowTimedCommands": "true",
      "TimedCommands": [
        [
          "say 'Server AUTOMATIC restart in 5 Hours'",
           10
        ],
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          20
        ],
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          30
        ],
        [
          "say 'Server AUTOMATIC restart in 4 Hours'",
          40
        ]
      ]
    }
     
  13. So is there a chance that I could make a warning every hour so it wouldn't mix into other hours warning and at the very end still make a restart?
     
  14. As i said.... You can broadcast like "say 'Automatic Restarts: 17:45, 20:30, 5:00, 6:00 (GMT + 3:00)' "

    Bcs i saw there will be a plugin that will show a clock at the top right of your screen
     
  15. Hmm but still let's say I make example, this should work I think?

    Code:
    {
      "ShowTimedCommands": "true",
      "TimedCommands": [
        [
          "say 'Automatic Restarts: 17:45, 20:30, 5:00, 6:00 (GMT + 3:00)",
           1800
        ],
        [
          "say 'Server AUTOMATIC restart in 1 HOUR!!!'",
          14400
        ],
        [
          "say 'Server AUTOMATIC restart in 10 MINUTES!!!'",
          17400
        ],
        [
          "restart",
          18000
        ]
      ]
    }
    And once it's restarted then it should reset all times, so basically the 1 hour and 10 minute warning shouldn't repeat right?
    [DOUBLEPOST=1433669482][/DOUBLEPOST]woops forgot to add command before restart.
     
  16. To much math man xD I dont have time right now i have to go ... But i will tell you one thing (AFTER RESTART EVERY TIMER IS STARTING)
    So these timers wont stop untill you unload the plugin.. they will go over and over non stop
     
  17. It would't work with the specific times you set at the first one as the timer will start as soon as you load / reload the plugin.
    Also what you could do to MANUALLY reset it, is adding a command into called "oxide.reload TimedCommands"
     
  18. "oxide.reload p-TimedExecute"
     
  19. ^^ okaaay
    Wow Wulf now blocked messages just like "^^"
    -> Message needs to have 10 or more characters
     
  20. Its a fcking sunny day on this Island (Rhodes<Greece>) I'm going to swim Bye :)