With my server i have to preface commands with rcon. Ex: rcon adminmessage. When adding my commands, does this plugin account for that or should I add rcon adminmessage?
TimedExecute [Replaced]
Discussion in 'Plugin Support' started by PaiN, Dec 8, 2015.
-
-
Wulf Community Admin
-
what if i add a admin command in like /giveall so on there is a new plugin out tring to go off what people already have out like /money add 100 then set it for every hr or so would it do commands like and admin??
-
-
My .json looks like this currently
{
"EnabledRealTime-Timer": true,
"EnableTimerOnce": false,
"EnableTimerRepeat": true,
"RealTime-Timer": {
"11:45:00": "adminmessage 'Restart in 15 minutes'",
"11:55:00": "adminmessage 'Restart in 5 minutes'",
"11:59:00": "adminmessage 'Restart in 1 minute'",
"11:59:30": "adminmessage 'Restart in 30 seconds'",
"11:59:50": "adminmessage 'Restart in 10 seconds'",
"12:00:00": "quit",
"23:45:00": "adminmessage 'Restart in 15 minutes'",
"23:55:00": "adminmessage 'Restart in 5 minutes'",
"23:59:00": "adminmessage 'Restart in 1 minute'",
"23:59:30": "adminmessage 'Restart in 30 seconds'",
"23:59:50": "adminmessage 'Restart in 10 seconds'",
"23:59:59": "quit"
},
"TimerOnce": {
"adminmessage 'Dont forget to like our fanpage!'": 60,
"adminmessage 'Follow us on Twitter!'": 120,
"adminmessage 'You can donate via PayPal!'": 180
},
"TimerRepeat": {
"saveserver": 300
}
}
I would also like to add an admin message that happens every hour that states Owner/Admins reserve the right to destroy structures on any roadway.
What and where would I have to add this to make it happen....Thank you. -
-
So, something like this...
{
"EnabledRealTime-Timer": true,
"EnableTimerOnce": false,
"EnableTimerRepeat": true,
"RealTime-Timer": {
"11:45:00": "adminmessage 'Restart in 15 minutes'",
"11:55:00": "adminmessage 'Restart in 5 minutes'",
"11:59:00": "adminmessage 'Restart in 1 minute'",
"11:59:30": "adminmessage 'Restart in 30 seconds'",
"11:59:50": "adminmessage 'Restart in 10 seconds'",
"12:00:00": "quit",
"23:45:00": "adminmessage 'Restart in 15 minutes'",
"23:55:00": "adminmessage 'Restart in 5 minutes'",
"23:59:00": "adminmessage 'Restart in 1 minute'",
"23:59:30": "adminmessage 'Restart in 30 seconds'",
"23:59:50": "adminmessage 'Restart in 10 seconds'",
"23:59:59": "quit"
},
"TimerOnce": {
"adminmessage 'Dont forget to like our fanpage!'": 60,
"adminmessage 'Follow us on Twitter!'": 120,
"adminmessage 'You can donate via PayPal!'": 180
},
"TimerRepeat": {
"saveserver": 300
},
"TimerRepeat": {
"adminmessage 'Owner/Admins reserve the right to destroy any structures on the roadways!'": 3600
}
} -
Why do you add another timer repeat since there is already one...
Just add a comma after the saveserver command and its timer and add another command without the comma at the end .. look at the other timers. -
This? Please forgive me....not terribly good at this sort of thing.
{
"EnabledRealTime-Timer": true,
"EnableTimerOnce": false,
"EnableTimerRepeat": true,
"RealTime-Timer": {
"11:45:00": "adminmessage 'Restart in 15 minutes'",
"11:55:00": "adminmessage 'Restart in 5 minutes'",
"11:59:00": "adminmessage 'Restart in 1 minute'",
"11:59:30": "adminmessage 'Restart in 30 seconds'",
"11:59:50": "adminmessage 'Restart in 10 seconds'",
"12:00:00": "quit",
"23:45:00": "adminmessage 'Restart in 15 minutes'",
"23:55:00": "adminmessage 'Restart in 5 minutes'",
"23:59:00": "adminmessage 'Restart in 1 minute'",
"23:59:30": "adminmessage 'Restart in 30 seconds'",
"23:59:50": "adminmessage 'Restart in 10 seconds'",
"23:59:59": "quit"
},
"TimerOnce": {
"adminmessage 'Dont forget to like our fanpage!'": 60,
"adminmessage 'Follow us on Twitter!'": 120,
"adminmessage 'You can donate via PayPal!'": 180
},
"TimerRepeat": {
"saveserver": 300,
"adminmessage 'Owner/Admins reserve the right to destroy any structures on the roadways!'": 3600
}
} -
-
So what would I write to just have simple server restart messages? Would I just type this?
Code:{ "EnabledRealTime-Timer": true, "EnableTimerOnce": false, "EnableTimerRepeat": true, "RealTime-Timer": { "11:45:00": "adminmessage 'Restart in 15 minutes'", "11:55:00": "adminmessage 'Restart in 5 minutes'", "11:59:00": "adminmessage 'Restart in 1 minute'", "11:59:30": "adminmessage 'Restart in 30 seconds'", "11:59:50": "adminmessage 'Restart in 10 seconds'", "12:00:00": "quit", "23:45:00": "adminmessage 'Restart in 15 minutes'", "23:55:00": "adminmessage 'Restart in 5 minutes'", "23:59:00": "adminmessage 'Restart in 1 minute'", "23:59:30": "adminmessage 'Restart in 30 seconds'", "23:59:50": "adminmessage 'Restart in 10 seconds'", "23:59:59": "quit" }
-
-
Like this?
Code:{ "EnabledRealTime-Timer": true, "EnableTimerOnce": false, "EnableTimerRepeat": true, "RealTime-Timer": { "11:45:00": "adminmessage 'Restart in 15 minutes'", "11:55:00": "adminmessage 'Restart in 5 minutes'", "11:59:00": "adminmessage 'Restart in 1 minute'", "11:59:30": "adminmessage 'Restart in 30 seconds'", "11:59:50": "adminmessage 'Restart in 10 seconds'", "12:00:00": "quit", "23:45:00": "adminmessage 'Restart in 15 minutes'", "23:55:00": "adminmessage 'Restart in 5 minutes'", "23:59:00": "adminmessage 'Restart in 1 minute'", "23:59:30": "adminmessage 'Restart in 30 seconds'", "23:59:50": "adminmessage 'Restart in 10 seconds'", "23:59:59": "quit" }, "TimerRepeat": { "saveserver": 300, } }
-
2)Where is the TimerOnce ? -
Oh alright thanks
-
Put the plug-in auto-restart. and the server is running day and wasn't auto restart.
-
Wulf Community Admin
What plugin are you referring to? Plugins can't restart the server, they can only shut it down.
-
[DOUBLEPOST=1453703978][/DOUBLEPOST]