Since rust is so unstable it would be nice to have a autorestart plugin with a save.all and countdown.
Solved Timed server shutdown
Discussion in 'Plugin Requests' started by Upperking, Nov 11, 2014.
-
Wulf Community Admin
It could only provide shutdown and save, not actual restarting.
-
yes please..
-
Wulf Community Admin
But then we'd need to figure out how to issue a server command programmatically first.
-
server.stop?
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Hi all.
My English is bad but I will try to explain
I need plugin that will automatically perform a closing rust server command "quit" when the clock ServerPC is 5:59.
Is this possible?
Example: (SouceMod)
Code:#pragma semicolon 1 #include <sourcemod>public Plugin:myinfo = { name = "Autorestart", author = "Cockfish", description = "", version = "1.0", url = "", }public OnPluginStart() { CreateTimer(60.0, CheckTime, 0, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE); }public Action:CheckTime(Handle:timer) { decl String:sTime[16]; new gettime = GetTime(); FormatTime(sTime, sizeof(sTime), "%H%M", gettime); new time = StringToInt(sTime); if(time == 0559) { Restart(); } else { return; } }public Restart() { ServerCommand("quit"), LogAction(0, -1, "Gameserver was restarted successfully."); }
Last edited by a moderator: Feb 2, 2015 -
Wulf Community Admin
Yes, but are you wanting it for Legacy or Experimental?
-
Anyway to make a plugin to be able to restart your server from in-game so that other mods/admins can restart when needed?
-
Wulf Community Admin
No, the best you can do is shut the server down using the quit command. You'd have to write an external script or use software to actually start the server.
-
[DOUBLEPOST=1422883261,1422845338][/DOUBLEPOST]Perhaps it will be easier:
Instead, need the plugin which is can save the map every 10-30 minutes or ServerPC 5:59?
My server reboots every day at 6:00
If you do not save the map, it will be empty each time? -
xx- time in second's
60*30=1800 sec -
My english very bad, sorry.
Possibly make plugin with timer for quit?
Sample:
Admin type in chat /timer xx (xx- time in minute).
/timer 20 => in game all players message "20 minute for shutdown server!!!" and every 5 minutes message is repeats:
15 minute for shutdown server!!!
10 minute for shutdown server!!!
5 minute for shutdown server!!!
1 minute for shutdown server!!!
Shutdown!!!
and quit in console.
I hope you understand me ))) -
Wulf Community Admin
Rust does have a built-in restart command now, with countdown.
-
I try it but it seems that just reastarting not saving as save plugin
which command are you using and is there any other command for it? -
any reply pls?
-
Wulf Community Admin
-
thanks a lot
by the way I am trying to reach to you from private chat for correct my birth day
could you please correct it