Fix GroupManager user migration
This commit is contained in:
parent
66f756575a
commit
77e3b351fd
@ -260,6 +260,7 @@ public class MigrationGroupManager extends SubCommand<Object> {
|
|||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String primaryGroup = primaryGroups.get(e.getKey());
|
String primaryGroup = primaryGroups.get(e.getKey());
|
||||||
if (primaryGroup != null) {
|
if (primaryGroup != null) {
|
||||||
@ -268,7 +269,6 @@ public class MigrationGroupManager extends SubCommand<Object> {
|
|||||||
} catch (ObjectAlreadyHasException ignored) {}
|
} catch (ObjectAlreadyHasException ignored) {}
|
||||||
user.setPrimaryGroup(primaryGroup);
|
user.setPrimaryGroup(primaryGroup);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
plugin.getDatastore().saveUser(user);
|
plugin.getDatastore().saveUser(user);
|
||||||
plugin.getUserManager().cleanup(user);
|
plugin.getUserManager().cleanup(user);
|
||||||
|
Loading…
Reference in New Issue
Block a user