mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
VERSION 1.4
CHANGELOG: -works: with COD, WaW, MW3, BO1 (preliminary without extensive testing) -fixed the issue with webfront chat history -fixed console issue of spamming 'polling rate decreased' when server goes offline -'unknown' admin in webfront defaults to 'IW4MAdmin'
This commit is contained in:
@ -15,18 +15,15 @@ namespace IW4MAdmin
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Version = 1.3;
|
||||
Version = 1.4;
|
||||
handler = new ConsoleEventDelegate(OnProcessExit);
|
||||
SetConsoleCtrlHandler(handler, true);
|
||||
|
||||
double.TryParse(CheckUpdate(), out double latestVersion);
|
||||
//double.TryParse(CheckUpdate(), out double latestVersion);
|
||||
Console.WriteLine("=====================================================");
|
||||
Console.WriteLine(" IW4M ADMIN");
|
||||
Console.WriteLine(" by RaidMax ");
|
||||
if (latestVersion != 0)
|
||||
Console.WriteLine(" Version " + Version + " (latest " + latestVersion + ")");
|
||||
else
|
||||
Console.WriteLine(" Version " + Version + " (unable to retrieve latest)");
|
||||
Console.WriteLine($" Version {Version}");
|
||||
Console.WriteLine("=====================================================");
|
||||
|
||||
try
|
||||
@ -45,7 +42,7 @@ namespace IW4MAdmin
|
||||
{
|
||||
userInput = Console.ReadLine();
|
||||
|
||||
if (userInput.ToLower() == "quit")
|
||||
if (userInput?.ToLower() == "quit")
|
||||
ServerManager.Stop();
|
||||
|
||||
if (ServerManager.Servers.Count == 0)
|
||||
@ -92,13 +89,6 @@ namespace IW4MAdmin
|
||||
[DllImport("kernel32.dll", SetLastError = true)]
|
||||
private static extern bool SetConsoleCtrlHandler(ConsoleEventDelegate callback, bool add);
|
||||
|
||||
static private String CheckUpdate()
|
||||
{
|
||||
//Connection Ver = new Connection("http://raidmax.org/IW4M/Admin/version.php");
|
||||
//return Ver.Read();
|
||||
return "0";
|
||||
}
|
||||
|
||||
static void CheckDirectories()
|
||||
{
|
||||
if (!Directory.Exists("Lib"))
|
||||
|
Reference in New Issue
Block a user