boolean finished = false;
EnumSet<TeleportFlags> flags = TeleportFlags.get(TeleportFlags.Default.getIndex());
if (packet.Type == PacketType.TeleportStart)
{
TeleportStartPacket start = (TeleportStartPacket)packet;
teleportMessage = "Teleport started";
flags = TeleportFlags.get(start.Info.TeleportFlags);
teleportStat = TeleportStatus.Start;