Do not rely on a static file path

Doing so will cause issues with the `--plugins` flag.
E.g. `java -jar server.jar --plugins /path/to/plugins/`
This commit is contained in:
NotMyFault
2021-05-21 00:35:19 +02:00
parent cc48f273c0
commit 7775cd0073
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ public final class BukkitPlatform extends JavaPlugin implements Listener, PlotPl
static {
try {
Settings.load(new File("plugins/PlotSquared/config/settings.yml"));
Settings.load(new File(PlotSquared.platform().getDirectory(), "settings.yml"));
} catch (Throwable ignored) {
}
}