mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
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:
@ -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) {
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user