private void FTBProcess() { MinecraftPinger feedthebeast = new MinecraftPinger(ServerAdress, 25565, "Minecraft Feed The Beast"); do { FTBState = feedthebeast.Ping(); if (CanRun) { Form.SetFTBState(FTBState); } Debug.WriteLine("FTB FINIS : " + FTBState); Thread.Sleep(FTBTimer * 1000); } while (CanRun); }
private void VanillaProcess() { MinecraftPinger vanilla = new MinecraftPinger(ServerAdress, 25566, "Minecraft Vanilla"); do { VanillaState = vanilla.Ping(); if (CanRun) { Form.SetVanillaState(VanillaState); } Debug.WriteLine("VANILLA FINIS : " + VanillaState); Thread.Sleep(VanillaTimer * 1000); } while (CanRun); }