/// <summary> /// Server Constructor /// </summary> /// <remarks>Defaults to using a config file in the same location as the executing assembly.</remarks> public EMMServer() { mSettings = new Config(this); mMinecraftSettings = new MCServerProperties(this); mMinecraftWhitelist = new SettingsFile(this, Path.Combine(mSettings.MinecraftRoot, "white-list.txt"), ' '); mParser = new CommandParser(this); mScheduler = new Scheduler.SchedulerManager(this); mPowerManager = new PowerManager(this); mUserManager = new UserManager(this); mServerSaving = false; ServerStatus = Status.Stopped; mSavedUsers = new ArrayList(); mOnlineUsers = new ArrayList(); mAutoSaveBlocks = 0; mAutoSaveEnabled = true; // See if we need to swap in a new config file, and load current config. mMinecraftSettings.LookForNewSettings(); mMinecraftWhitelist.LookForNewSettings(); mScheduler.LoadSchedule(Path.Combine(mSettings.ServerManagerRoot, "scheduler.xml")); mScheduler.Start(); mUserManager.UpdateAllPositionsFromFile(); mUserManager.MonitorUserFiles(); }