geforkt von Mirrors/FastAsyncWorldEdit
Aparrantly this isn't shaded into Bukkit
Dieser Commit ist enthalten in:
Ursprung
15714dc78c
Commit
c580d6efc4
@ -21,10 +21,8 @@ package com.sk89q.worldedit.bukkit;
|
|||||||
|
|
||||||
import com.sk89q.util.yaml.YAMLProcessor;
|
import com.sk89q.util.yaml.YAMLProcessor;
|
||||||
import com.sk89q.worldedit.util.YAMLConfiguration;
|
import com.sk89q.worldedit.util.YAMLConfiguration;
|
||||||
import org.apache.commons.io.FileUtils;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* YAMLConfiguration but with setting for no op permissions and plugin root data folder
|
* YAMLConfiguration but with setting for no op permissions and plugin root data folder
|
||||||
@ -56,13 +54,11 @@ public class BukkitConfiguration extends YAMLConfiguration {
|
|||||||
File fromDir = new File(".", file);
|
File fromDir = new File(".", file);
|
||||||
File toDir = new File(getWorkingDirectory(), file);
|
File toDir = new File(getWorkingDirectory(), file);
|
||||||
if (fromDir.exists() & !toDir.exists()) {
|
if (fromDir.exists() & !toDir.exists()) {
|
||||||
try {
|
if (fromDir.renameTo(toDir)) {
|
||||||
FileUtils.moveDirectory(fromDir, toDir);
|
|
||||||
plugin.getLogger().info("Migrated " + name + " folder '" + file +
|
plugin.getLogger().info("Migrated " + name + " folder '" + file +
|
||||||
"' from server root to plugin data folder.");
|
"' from server root to plugin data folder.");
|
||||||
} catch (IOException e) {
|
} else {
|
||||||
plugin.getLogger().warning("Error while migrating " + name + " folder: " +
|
plugin.getLogger().warning("Error while migrating " + name + " folder!");
|
||||||
e.getMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren