Skip to content

Commit

Permalink
feat(config): Rename config file name to cosmicJars.yml
Browse files Browse the repository at this point in the history
This change updates the file name to 'cosmicJars.yml'. Refactored the
config file handling and added logging.
  • Loading branch information
GeorgeV220 committed Jul 8, 2024
1 parent 4636fb9 commit 51279c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/georgev22/cosmicjars/CosmicJars.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public CosmicJars(String[] args) {
""");
logger.info("Made with love by George V. https://github.com/GeorgeV220");

configFile = new File(WORKING_DIRECTORY, "centroJars.yml");
configFile = new File(WORKING_DIRECTORY, "cosmicJars.yml");
if (!configFile.exists()) {
this.fileConfiguration = promptUserForServerDetails();
} else {
Expand Down Expand Up @@ -267,7 +267,7 @@ public void saveConfig() {
try {
this.fileConfiguration.save(this.configFile);
} catch (IOException e) {
this.logger.error("Error saving centroJars.yml: {}", e.getMessage());
this.logger.error("Error saving cosmicJars.yml: {}", e.getMessage());
}
}

Expand Down Expand Up @@ -342,4 +342,4 @@ public void sendCommand(String[] command) {
default -> this.logger.info("Unknown command: {}, type 'help' for help", String.join(" ", command));
}
}
}
}

0 comments on commit 51279c6

Please sign in to comment.