Fix issues from previous merge

This commit is contained in:
Alexander Söderberg
2020-07-14 13:21:59 +02:00
parent 33f2ff7e6d
commit 1dc4da8beb
4 changed files with 12 additions and 17 deletions

View File

@ -1716,18 +1716,8 @@ public class PlotSquared {
} catch (IOException ignored) {
logger.error("[P2] Failed to save storage.yml");
}
try {
this.commandsFile = new File(folder, "commands.yml");
if (!this.commandsFile.exists() && !this.commandsFile.createNewFile()) {
logger.error("[P2] Could not create the commands file. Please create 'commands.yml' manually");
}
this.commands = YamlConfiguration.loadConfiguration(this.commandsFile);
} catch (IOException ignored) {
logger.error("[P2] Failed to save commands.yml");
}
try {
this.style.save(this.styleFile);
this.commands.save(this.commandsFile);
} catch (IOException e) {
logger.error("[P2] Configuration file saving failed", e);
}

View File

@ -408,7 +408,8 @@ public abstract class PlotArea {
prefix = ", ";
}
}
PlotSquared.log(Captions.PREFIX + "&3 - road flags: &7" + roadFlagBuilder.toString());
logger.info("[P2] - road flags: {}", roadFlagBuilder.toString());
loadConfiguration(config);
}