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

-rcon tweaks

-so much stuff cant remember
This commit is contained in:
RaidMax
2015-03-23 22:01:05 -05:00
parent dad8fedc78
commit ed4883d675
10 changed files with 290 additions and 79 deletions

View File

@ -29,10 +29,11 @@ namespace IW4MAdmin
foreach (Server IW4M in checkConfig())
{
//Threading seems best here
Thread monitorThread = new Thread(new ThreadStart(IW4M.Monitor));
Server SV = IW4M;
Thread monitorThread = new Thread(new ThreadStart(SV.Monitor));
monitorThread.Start();
Utilities.Wait(0.3);
Console.WriteLine("Now monitoring " + IW4M.getName());
Utilities.Wait(0.2); // give rcon a chance to respond
Console.WriteLine("Now monitoring " + SV.getName());
}
Utilities.Wait(5); //Give them time to read an error before exiting