Skip to content

Commit

Permalink
Check for unloaded config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Staartvin committed Jan 27, 2020
1 parent 7768e3d commit 9b52695
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/me/armar/plugins/autorank/util/uuid/UUIDStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ public void loadConfig(final String key) {

final FileConfiguration config = configs.get(key);

if (config == null) {
plugin.getLogger().severe("Can't find UUID storage file for " + key);
return;
}

config.options().header("This file stores all uuids of players that Autorank has looked up before."
+ "\nEach file stores accounts with the starting letter of the player's name.");

Expand Down

0 comments on commit 9b52695

Please sign in to comment.