public static void setLocation(String type, Location loc) { Files.getDataFile().set(type + ".world", loc.getWorld().getName()); Files.getDataFile().set(type + ".x", loc.getBlockX()); Files.getDataFile().set(type + ".y", loc.getBlockY()); Files.getDataFile().set(type + ".z", loc.getBlockZ()); Files.saveDataFile(); }