mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-10-03 00:57:34 +02:00
Updated createDefaultConfiguration() to create parent directories.
This commit is contained in:
parent
20afbdf264
commit
fd8c827bf1
@ -547,6 +547,12 @@ public LocalPlayer wrapPlayer(Player player) {
|
||||
*/
|
||||
public static void createDefaultConfiguration(File actual,
|
||||
String defaultName) {
|
||||
|
||||
// Make parent directories
|
||||
File parent = actual.getParentFile();
|
||||
if (!parent.exists()) {
|
||||
parent.mkdirs();
|
||||
}
|
||||
|
||||
if (actual.exists()) {
|
||||
return;
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Michael
|
||||
* @author sk89q
|
||||
*/
|
||||
public class StringFlag extends Flag<String> {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user