Working on fixing plot setup

This commit is contained in:
boy0001 2015-04-21 22:48:18 +10:00
parent 5c58f14d1a
commit eb7c6df42a
11 changed files with 1074 additions and 31 deletions

View file

@ -564,19 +564,22 @@ public class PlotSquared {
}
// Copy files
copyFile("town.template");
copyFile("skyblock.template");
copyFile("town.template", "templates");
copyFile("skyblock.template", "templates");
copyFile("german.yml", "translations");
copyFile("s_chinese_unescaped.yml", "translations");
copyFile("s_chinese.yml", "translations");
showDebug();
}
public void copyFile(String file) {
public void copyFile(String file, String folder) {
try {
byte[] buffer = new byte[2048];
File output = PlotSquared.IMP.getDirectory();
if (!output.exists()) {
output.mkdirs();
}
File newFile = new File((output + File.separator + "templates" + File.separator + file));
File newFile = new File((output + File.separator + folder + File.separator + file));
if (newFile.exists()) {
return;
}