Very close configif 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 } ] }
TimedExecute [Unmaintained]
Discussion in 'Plugin Support' started by PaiN, Apr 7, 2015.
-
Is there a automatic 60 second timer broadcast before the restart using that command?
-
[DOUBLEPOST=1433939882,1433864559][/DOUBLEPOST] -
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.
-
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": [] }
-
I'm Sorry.
[DOUBLEPOST=1434101533][/DOUBLEPOST]Code:"EnableTimerOnceCommands": "true", "EnableTimerRepeatCommands": "true",
Last edited by a moderator: Jun 12, 2015 -
PaiN updated TimedExecute with a new update entry:
Config Edit
[DOUBLEPOST=1434105384][/DOUBLEPOST]
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 -
-
PaiN updated TimedExecute with a new update entry:
Automatic Config updating
-
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 -
You probably removed the ConfigCode line which is very important or you copied the config from the overview which is my fault
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 -
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. -
[DOUBLEPOST=1434369180][/DOUBLEPOST] -
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]
Last edited by a moderator: Jun 15, 2015 -
-
PaiN updated TimedExecute with a new update entry:
Config save fix
-
possible to execute dependant on Time rather than seconds? , i.e restart at 6am
-
Maths.. -
-