mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 22:13:12 +00:00
Working on fixing plot setup
This commit is contained in:
parent
5c58f14d1a
commit
eb7c6df42a
11 changed files with 1074 additions and 31 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue