mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-08 17:07:38 +00:00
actually do the file path stuff how it's supposed to work
This commit is contained in:
parent
9238a887c0
commit
dd85fc254f
@ -25,6 +25,7 @@ import com.sk89q.worldedit.util.report.Unreported;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
|
||||
/**
|
||||
* YAMLConfiguration but with setting for no op permissions and plugin root data folder.
|
||||
@ -68,7 +69,7 @@ public class BukkitConfiguration extends YAMLConfiguration {
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getWorkingDirectory() {
|
||||
return plugin.getDataFolder();
|
||||
public Path getWorkingDirectoryPath() {
|
||||
return plugin.getDataFolder().toPath();
|
||||
}
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ public abstract class LocalConfiguration {
|
||||
* @return a working directory
|
||||
*/
|
||||
public Path getWorkingDirectoryPath() {
|
||||
return Paths.get(".","plugins", "FastAsyncWorldEdit");
|
||||
return Paths.get(".");
|
||||
}
|
||||
|
||||
public void initializeSnapshotConfiguration(String directory, boolean experimental) {
|
||||
|
Loading…
Reference in New Issue
Block a user