public void KickAll() { var rcc = new RConClient(this.host, this.port, this.password); rcc.ConnectAsync().Wait(); for (int i = 0; i < 100; i++) { var cmd = string.Format("kick {0} SERVER IS RESTARTING", i); rcc.SendCommandAsync(cmd); } }
private void SendCommand(string cmd) { var rcc = new RConClient(this.host, this.port, this.password); rcc.ConnectAsync().Wait(); rcc.SendCommandAsync(cmd); }