Don't fatal error if the server owner wants to modify saved disguises files
This commit is contained in:
parent
8c2a5eeb00
commit
0d5d133e42
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user