Пример #1
0
 /// <summary>
 /// Internal method used to disconnect clients, also raises the OnUserDisconnected event.
 /// </summary>
 /// <param name="target">NetworkEntity to whom is going be applyed the ban hammer.</param>
 internal void DisconnectClient(NetworkEntity target)
 {
     if (target != null && target.IsAlive())
     {
         this.OnUserDisconnected(target, null);
         this.chatManager.UnregisterUser(target);
         this.clientsHandler.RemoveClient(target);
     }
 }