Don't fatal error if the server owner wants to modify saved disguises files

This commit is contained in:
libraryaddict 2019-11-20 20:08:19 +13:00
parent 8c2a5eeb00
commit 0d5d133e42

View File

@ -972,7 +972,12 @@ public class DisguiseUtilities {
cachedNames.addAll(Arrays.asList(profileCache.list()));
for (String key : savedDisguises.list()) {
savedDisguiseList.add(UUID.fromString(key));
try {
savedDisguiseList.add(UUID.fromString(key));
}
catch (Exception ex) {
getLogger().warning("The file '" + key + "' does not belong in " + savedDisguises.getAbsolutePath());
}
}
}