Skip to content

Commit d2298d1

Browse files
authored
Merge pull request #623 from Multiverse/fix/rebuild-playernames
Rebuild playernames.json if the file fails to parse
2 parents d10aa07 + 9829a09 commit d2298d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/mvplugins/multiverse/inventories/profile/PlayerNamesMapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ private void loadFromPlayerNamesFile() {
9595
Logging.warning(throwable.getMessage());
9696
}));
9797
} catch (Exception e) {
98+
Logging.warning("Could not load player names map. Rebuilding instead...");
9899
e.printStackTrace();
100+
buildPlayerNamesMap();
99101
}
100102
}
101103

0 commit comments

Comments
 (0)