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

fixed another issue with config creation

fixed issue with player count
added topstats command
This commit is contained in:
RaidMax
2015-03-10 16:56:01 -05:00
parent 57ddbebd8c
commit 74312d5b4e
9 changed files with 76 additions and 15 deletions

View File

@ -10,7 +10,7 @@ namespace IW4MAdmin
static String IP;
static int Port;
static String RCON;
static public double Version = 0.2;
static public double Version = 0.3;
static public double latestVersion;
static void Main(string[] args)
@ -73,12 +73,15 @@ namespace IW4MAdmin
file Config = new file("config\\servers.cfg");
String[] SV_CONF = Config.readAll();
List<Server> Servers = new List<Server>();
Config.Close();
if (SV_CONF == null || SV_CONF.Length < 1 || SV_CONF[0] == String.Empty)
{
setupConfig(); // get our first time server
Config = new file("config\\servers.cfg", true);
Config.Write(IP + ':' + Port + ':' + RCON);
Config.Close();
Servers.Add(new Server(IP, Port, RCON));
}