mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 07:13:58 -05:00
Made webfront optional for decreased ram usage
initialization should be better asynced clean up publish folder after publish added chevron hover icon for loading more penalties added T6M maps to config
This commit is contained in:
@ -38,7 +38,7 @@ namespace IW4MAdmin.Application
|
||||
ServerManager = ApplicationManager.GetInstance();
|
||||
ServerManager.Init().Wait();
|
||||
|
||||
Task.Run((Action)(() =>
|
||||
Task.Run(() =>
|
||||
{
|
||||
String userInput;
|
||||
Player Origin = ServerManager.GetClientService().Get(1).Result.AsPlayer();
|
||||
@ -59,9 +59,12 @@ namespace IW4MAdmin.Application
|
||||
Console.Write('>');
|
||||
|
||||
} while (ServerManager.Running);
|
||||
}));
|
||||
});
|
||||
|
||||
Task.Run(() => WebfrontCore.Program.Init(ServerManager));
|
||||
if (ServerManager.GetApplicationSettings().Configuration().EnableWebFront)
|
||||
{
|
||||
Task.Run(() => WebfrontCore.Program.Init(ServerManager));
|
||||
}
|
||||
ServerManager.Start();
|
||||
ServerManager.Logger.WriteVerbose("Shutdown complete");
|
||||
|
||||
|
Reference in New Issue
Block a user