String result = "#Gate Tag|World|X|Y|Z|Target Tag\n";
String line = "";
for (String gateTag : myGateTags)
{
EpicGate gate = myGates.get(gateTag);
line = gate.getTag() + ",";
line = line + gate.getLocation().getWorld().getName() + ",";
line = line + gate.getLocation().getBlockX() + ",";
line = line + gate.getLocation().getBlockY() + ",";
line = line + gate.getLocation().getBlockZ() + ",";
line = line + gate.getTargetTag() + ",";
line = line + gate.getDirection() + ",";
line = line + BuildAllowed(gate) + ",";
line = line + BuildNotAllowed(gate) + "\n";
result = result + line;
}
return result;