/// <summary>
 /// Sends a packet to the server if its connected
 /// </summary>
 /// <param name="packet"></param>
 public void sendData(ISendable packet)
 {
     connection.sendData(packet.getPacket() as ClientOutgoingPacket);
 }