mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +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:
@ -1365,7 +1365,7 @@ public class PlotSquared {
|
||||
public boolean setupConfigs() {
|
||||
File folder = new File(this.platform.getDirectory(), "config");
|
||||
if (!folder.exists() && !folder.mkdirs()) {
|
||||
logger.error("Failed to create the /plugins/PlotSquared/config folder. Please create it manually");
|
||||
logger.error("Failed to create the {} config folder. Please create it manually", this.platform.getDirectory());
|
||||
}
|
||||
try {
|
||||
this.worldsFile = new File(folder, "worlds.yml");
|
||||
|
Reference in New Issue
Block a user