Save the teleports in and free.

This commit is contained in:
graywolf336 2013-12-06 21:56:00 -06:00
parent 7976dec870
commit b664428142

View File

@ -64,6 +64,8 @@ public class JailIO {
default: default:
if(flat != null) { if(flat != null) {
String node = "jails." + j.getName(); String node = "jails." + j.getName();
//Corners
flat.set(node + "top.x", j.getMaxPoint().getBlockX()); flat.set(node + "top.x", j.getMaxPoint().getBlockX());
flat.set(node + "top.y", j.getMaxPoint().getBlockY()); flat.set(node + "top.y", j.getMaxPoint().getBlockY());
flat.set(node + "top.z", j.getMaxPoint().getBlockZ()); flat.set(node + "top.z", j.getMaxPoint().getBlockZ());
@ -71,6 +73,20 @@ public class JailIO {
flat.set(node + "bottom.y", j.getMinPoint().getBlockY()); flat.set(node + "bottom.y", j.getMinPoint().getBlockY());
flat.set(node + "bottom.z", j.getMinPoint().getBlockZ()); flat.set(node + "bottom.z", j.getMinPoint().getBlockZ());
//Tele in
flat.set(node + "tps.in.x", j.getTeleportIn().getX());
flat.set(node + "tps.in.y", j.getTeleportIn().getY());
flat.set(node + "tps.in.z", j.getTeleportIn().getZ());
flat.set(node + "tps.in.pitch", j.getTeleportIn().getPitch());
flat.set(node + "tps.in.yaw", j.getTeleportIn().getYaw());
//Tele out
flat.set(node + "tps.free.x", j.getTeleportFree().getX());
flat.set(node + "tps.free.y", j.getTeleportFree().getY());
flat.set(node + "tps.free.z", j.getTeleportFree().getZ());
flat.set(node + "tps.free.pitch", j.getTeleportFree().getPitch());
flat.set(node + "tps.free.yaw", j.getTeleportFree().getYaw());
try { try {
flat.save(new File(pl.getDataFolder(), "data.yml")); flat.save(new File(pl.getDataFolder(), "data.yml"));
} catch (IOException e) { } catch (IOException e) {