Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanceSD authored and ChanceSD committed May 29, 2020
1 parent 991ff43 commit a8aa07d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public ConfigManager(final PvPManager plugin) {
this.users = new YamlConfiguration();
this.usersFile = new File(plugin.getDataFolder(), "users.yml");
this.configFile = new File(plugin.getDataFolder(), "config.yml");
loadConfig();
loadUsersFile();
if (Settings.isLogToFile()) {
log = new LogFile(new File(plugin.getDataFolder(), "combatlogs.log"));
}
loadConfig();
loadUsersFile();
}

private void loadConfig() {
Expand Down

0 comments on commit a8aa07d

Please sign in to comment.