Add custom usercontent loading from json and javascript files alongside bugfixes for page list, refactorings and documentation

This commit is contained in:
Marcel Konrad
2019-11-02 18:41:15 +01:00
parent 677f899661
commit fc70c82545
126 changed files with 3664 additions and 656 deletions

View File

@@ -1,5 +1,8 @@
package exopandora.worldhandler.config;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import org.apache.commons.lang3.tuple.Pair;
@@ -124,4 +127,19 @@ public class Config
KeyHandler.updatePosKeys();
}
}
public static void setupDirectories(Path path)
{
try
{
if(!Files.exists(path))
{
Files.createDirectories(path);
}
}
catch(IOException e)
{
e.printStackTrace();
}
}
}