Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 private void SendCommand(string cmd)
 {
     var rcc = new RConClient(this.host, this.port, this.password);
     rcc.ConnectAsync().Wait();
     rcc.SendCommandAsync(cmd);
 }