geforkt von Mirrors/FastAsyncWorldEdit
actually do the file path stuff how it's supposed to work
Dieser Commit ist enthalten in:
Ursprung
9238a887c0
Commit
dd85fc254f
@ -25,6 +25,7 @@ import com.sk89q.worldedit.util.report.Unreported;
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
@ -68,7 +69,7 @@ public class BukkitConfiguration extends YAMLConfiguration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public File getWorkingDirectory() {
|
public Path getWorkingDirectoryPath() {
|
||||||
return plugin.getDataFolder();
|
return plugin.getDataFolder().toPath();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,7 @@ public abstract class LocalConfiguration {
|
|||||||
* @return a working directory
|
* @return a working directory
|
||||||
*/
|
*/
|
||||||
public Path getWorkingDirectoryPath() {
|
public Path getWorkingDirectoryPath() {
|
||||||
return Paths.get(".","plugins", "FastAsyncWorldEdit");
|
return Paths.get(".");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void initializeSnapshotConfiguration(String directory, boolean experimental) {
|
public void initializeSnapshotConfiguration(String directory, boolean experimental) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren