Skip to content

Commit

Permalink
Add createConfig method
Browse files Browse the repository at this point in the history
  • Loading branch information
Reldeam committed Jan 27, 2022
1 parent 8f8b0fc commit d9de611
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void onEnable() {
}

// create config files if it doesn't exist
saveDefaultConfig();
createConfig();
createTradesConfig();

// set config values
Expand Down Expand Up @@ -81,6 +81,11 @@ public void onDisable() {

}

private void createConfig() {
getConfig().options().copyDefaults(true);
saveConfig();
}

private void createTradesConfig() {

tradesConfigFile = new File(getDataFolder(), "trades.yml");
Expand Down
26 changes: 0 additions & 26 deletions src/test/resources/config.yml

This file was deleted.

0 comments on commit d9de611

Please sign in to comment.