PaiN updated TimedExecute with a new update entry:
Edited Default Config
TimedExecute [Unmaintained]
Discussion in 'Plugin Support' started by PaiN, Apr 7, 2015.
-
Code:
{ "RepeatTimedCommands": [ [ "server.save", 300 ], [ "say 'hello world'", 5 ] ], "ShowTimedCommands": "true", "TimerOnceCommands": [ [ "say 'Restart in 1 MINUTE!'", 60 ], [ "say 'Restart in 30 Seconds!'", 90 ], [ "restart", 120 ], [ "reset.oncetimer", 121 ] ] }
In overview reset.oncetimer wount go through because the server goes down already ?
[DOUBLEPOST=1433694470][/DOUBLEPOST]Thanks for the once update though^^ -
but if u leave it as it is it wont throw an error or something -
PaiN you made a mistake with the config setup
You had:
Code:function PLUGIN:LoadDefaultConfig() self.Config.ShowTimedCommands = "true" self.Config.TimerOnceCommands = { {"say 'Restart in 1 MINUTE!'",60}, {"say 'Restart in 30 Seconds!'",90}, {"restart",120}, {"reset.oncetimer",121}, } self.Config.RepeatTimedCommands = { {"server.save",300}, {"say 'hello world'",5}, } end
Code:function PLUGIN:LoadDefaultConfig() self.Config.ShowTimedCommands = self.Config.ShowTimedCommands or "true" self.Config.TimerOnceCommands = self.Config.TimerOnceCommands or { {"say 'Restart in 1 MINUTE!'",60}, {"say 'Restart in 30 Seconds!'",90}, {"restart",120}, {"reset.oncetimer",121} } self.Config.RepeatTimedCommands = self.Config.RepeatTimedCommands or { { "server.save", 300 }, { "say 'hello world'", 5 } } self:SaveConfig() end
-
-
PaiN updated TimedExecute with a new update entry:
config fix
-
[DOUBLEPOST=1433706157][/DOUBLEPOST]
Code:{ "RepeatTimedCommands": [ [ "server.save", 300 ] ], "ShowTimedCommands": "true", "TimerOnceCommands": [ [ "say 'Restart in 3 hours!'", 7200 ], [ "say 'Restart in 2 hours!'", 10800 ], [ "say 'Restart in 1 hour!'", 14400 ], [ "say 'Restart in 30 minutes!'", 16200 ], [ "say 'Restart in 15 minutes!'", 17100 ], [ "say 'Restart in 5 minutes!'", 17700 ], [ "say 'Restart NOW!'", 18000 ], [ "restart", 18000 ] ] }
-
[DOUBLEPOST=1433706479][/DOUBLEPOST] -
Wulf Community Admin
-
Here is an error I am getting trying to load the plugin.
Code:File: p-TimedExecute.lua Line: 68 invalid arguments to method call: at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Code:{ "RepeatTimedCommands": [ [ "server.save", 300 ], [ "airdrop.massdrop 5", 300 ], [ "say 'hello world'", 5 ], ], "ShowTimedCommands": "true", "TimerOnceCommands": [ [ ] ] }
-
This will be the config your look like after update (CARE ABOUT COMMAS)
Code:{ "EnableTimerOnceCommands": "true", "EnableTimerRepeatCommands": "false", "RepeatTimedCommands": [ [ "server.save'", 300 ], [ "airdrop.massdrop 5", 300 ] ], "TimerOnceCommands": [ [ "say 'Restart in 1 MINUTE!'", 6 ], [ "say 'Restart in 30 Seconds!'", 10 ], [ "restart", 120 ], [ "reset.oncetimer", 15 ] ] }
Last edited by a moderator: Jun 9, 2015 -
PaiN updated TimedExecute with a new update entry:
Fixes
-
whats the config so i can make the server restart every 8 hours? with a count from 8 hours > 5 hours > 2 hours > 1 hour > 30 min > 5 min > now and then restart?
-
2. http://www.unitconversion.org/time/hours-to-seconds-conversion.html
3. Make your config
4. If you want you can wait 5 mins i will update the plugin with less code and better config -
PaiN updated TimedExecute with a new update entry:
Less code, Better Config and better functionality
[DOUBLEPOST=1433846551][/DOUBLEPOST]Dont Forget the notes!
-
PaiN updated TimedExecute with a new update entry:
Edited Default Config...
-
In the default config ovefview :
Code:"command": "say 'Restart in 1 minute",
Code:"command": "say 'Restart in 1 minute'",
-
-
PaiN updated TimedExecute with a new update entry:
Default Config Edit again...
-
I want to automatically restart my server once every day, Would this config work? Does the reset.oncetimer mean the time after the commands start back up again? Sorry for the silly question i just want to be sure.
Code:{ "EnableTimerOnceCommands": "true", "EnableTimerRepeatCommands": "true", "OnceCommands": [ { "command": "say 'Restart in 1 minute'", "seconds": 60 }, { "command": "say 'Restart in 30 seconds'", "seconds": 90 }, { "command": "say 'Restarting Now'", "seconds": 120 }, { "command": "restart", "seconds": 120 }, { "command": "reset.oncetimer", "seconds": 86400 } ], "RepeaterCommands": [ { "command": "stability.updateall", "seconds": 300 } ] }