Add custom usercontent loading from json and javascript files alongside bugfixes for page list, refactorings and documentation
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user