1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 07:13:58 -05:00

moved stats to a plugin!

This commit is contained in:
RaidMax
2015-08-20 16:54:38 -05:00
parent ec7bed8e11
commit f4016f6691
18 changed files with 212 additions and 204 deletions

View File

@ -10,14 +10,14 @@ namespace IW4MAdmin
{
class Program
{
static public double Version = 0.92;
static public double latestVersion;
static public bool usingMemory = true;
static public double Version { get; private set; }
static private Manager serverManager;
static private IW4MAdmin_Web.WebFront frontEnd;
static void Main(string[] args)
{
Version = 0.95;
double latestVersion = 0;
handler = new ConsoleEventDelegate(OnProcessExit);
SetConsoleCtrlHandler(handler, true);
@ -66,6 +66,7 @@ namespace IW4MAdmin
if (S == null)
continue;
S.Broadcast("^5IW4MAdmin ^7is going ^1offline^7");
S.isRunning = false;
if (Utilities.shutdownInterface(S.pID()))
@ -77,14 +78,13 @@ namespace IW4MAdmin
Program.getManager().shutDown();
frontEnd.webSchedule.Stop();
frontEnd.webSchedule.Dispose();
return false;
}
catch
{
return true;
}
return false;
}
private delegate bool ConsoleEventDelegate(int eventType);