public UI() { InitializeComponent(); Logger.Init("fCraft.log", this); Config.Init("config.xml"); World.server = new Server(); this.FormClosing += HandleShutDown; World.server.Run(); }
public bool Init() { log.Init("fCraft.log"); if (!config.Load("config.xml")) { return(false); } config.ApplyConfig(); config.Save("config.xml"); // allocate player list players = new Player[config.GetInt("MaxPlayers") + 1]; tasks.Init(); // load player DB db.Load(); bans.Load(); return(true); }