/// <summary> /// Kicks the player with the specified reason. /// </summary> /// <param name="reason">The reason.</param> public void Kick(string reason) { IsBeingKicked = true; PacketQueue.WritePacketNowAndFlush(new PacketDisconnectPlayer(0xFF, reason)); PacketQueue.Stop(); PacketQueue.CloseConnection(); Dispose(); }