Ejemplo n.º 1
0
        internal void Kick(string message, params object[] args)
        {
            var mess = string.Format(message, args);

            this.Connected        = false;
            this.TimeDisconnected = DateTime.Now;
            var rpc = new BinarySenderStub(this.Socket, State.Instance.Handler);

            rpc.Kick(mess);
            Socket.Disconnect();
            if (SaidHello)
            {
                new Broadcaster(State.Instance.Handler)
                .Error(string.Format("Player {0} was kicked: {1}", Nick, mess));
            }
            SaidHello = false;
        }
Ejemplo n.º 2
0
        internal void Kick(bool report, string message, params object[] args)
        {
            var mess = string.Format(message, args);

            this.Connected        = false;
            this.TimeDisconnected = DateTime.Now;
            var rpc = new BinarySenderStub(this.Socket, State.Instance.Handler);

            rpc.Kick(mess);
            //Socket.Disconnect();
            Disconnect(report);
            if (SaidHello)
            {
                new Broadcaster(State.Instance.Handler)
                .Error(string.Format(L.D.ServerMessage__PlayerKicked, Nick, mess));
            }
            SaidHello = false;
        }
Ejemplo n.º 3
0
 internal void Kick(bool report, string message, params object[] args)
 {
     var mess = string.Format(message, args);
     this.Connected = false;
     this.TimeDisconnected = DateTime.Now;
     var rpc = new BinarySenderStub(this.Socket,State.Instance.Handler);
     rpc.Kick(mess);
     //Socket.Disconnect();
     Disconnect(report);
     if (SaidHello)
     {
         new Broadcaster(State.Instance.Handler)
             .Error(string.Format(L.D.ServerMessage__PlayerKicked, Nick, mess));
     }
     SaidHello = false;
 }
Ejemplo n.º 4
0
 internal void Kick(string message, params object[] args)
 {
     var mess = string.Format(message, args);
     this.Connected = false;
     this.TimeDisconnected = DateTime.Now;
     var rpc = new BinarySenderStub(this.Socket,State.Instance.Handler);
     rpc.Kick(mess);
     Socket.Disconnect();
     if (SaidHello)
     {
         new Broadcaster(State.Instance.Handler)
             .Error(string.Format("Player {0} was kicked: {1}", Nick, mess));
     }
     SaidHello = false;
 }