public static void Start(int controlPort) { if (thread != null) throw new InvalidOperationException("ContorlListener already started"); port = controlPort; thread = Threads.Create("Controller Listener", Run, null); thread.Start(); }
public VanillaSession(VanillaWorld world, Client player) : base(player) { this.World = world; this.Vanilla = world; OreTracker = new OreTracker(player); if (player.MinecraftUsername == null) throw new ArgumentException("Player must be logged in, missing minecraftusername"); thread = Threads.Create(this, RunServerReader, WatchdogKilled); thread.User = Player.MinecraftUsername; thread.Start(); }
public static void Start() { thread = Threads.Create("Backup", BackupThreadRun, null); thread.Start(); }