mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 10:14:42 +02:00
Fix issues from previous merge
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user