Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 01:50:06 +01:00
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 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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren