Just a quick and simple command, for those of you who host servers with a large amount of people.
Basically what is does is when an Admin types the command "SvrRestart", An announcement text comes up saying
"Server restarting soon. Please be ready to disconnect. Estimated server down time: 30 Seconds - 1 Minute"
Just copy + paste this in to Player.Chat.cs
And, no, this does not restart the server.
It's just a quicker way to say "server restarting"
Example:
Code:
else if (cmd.Equals("SvrRestart", StringComparison.OrdinalIgnoreCase) && CmdReqAdmin())
{
foreach (var i in RealmManager.Clients.Values)
{
i.SendPacket(new TextPacket()
{
BubbleTime = 0,
Stars = -1,
Name = "@Announcement",
Text = "Server restarting soon. Please be ready to disconnect. Estimated server down time: 30 Seconds - 1 Minute"
});
}
}