actually do the file path stuff how it's supposed to work

Dieser Commit ist enthalten in:
Aurora 2020-08-30 11:45:37 +02:00
Ursprung 9238a887c0
Commit dd85fc254f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 89839F67B53656AD
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -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();
} }
} }

Datei anzeigen

@ -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) {