use of com.palmergames.bukkit.towny.object.TownBlock in project Towny by ElgarL.
the class TownyFlatFileSource method saveTownBlockList.
/*
* Save keys
*/
@Override
public boolean saveTownBlockList() {
List<String> list = new ArrayList<String>();
for (TownBlock townBlock : getAllTownBlocks()) {
list.add(townBlock.getWorld().getName() + "," + townBlock.getX() + "," + townBlock.getZ());
}
/*
* Make sure we only save in async
*/
this.queryQueue.add(new FlatFile_Task(list, rootFolder + dataFolder + FileMgmt.fileSeparator() + "townblocks.txt"));
return true;
}
Aggregations