Don't fatal error if the server owner wants to modify saved disguises files
This commit is contained in:
parent
8c2a5eeb00
commit
0d5d133e42
@ -972,8 +972,13 @@ public class DisguiseUtilities {
|
||||
cachedNames.addAll(Arrays.asList(profileCache.list()));
|
||||
|
||||
for (String key : savedDisguises.list()) {
|
||||
try {
|
||||
savedDisguiseList.add(UUID.fromString(key));
|
||||
}
|
||||
catch (Exception ex) {
|
||||
getLogger().warning("The file '" + key + "' does not belong in " + savedDisguises.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isDisguiseInUse(Disguise disguise) {
|
||||
|
Loading…
Reference in New Issue
Block a user