Fix GroupManager user migration
This commit is contained in:
parent
66f756575a
commit
77e3b351fd
@ -260,14 +260,14 @@ 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) {
|
||||||
try {
|
try {
|
||||||
user.setPermission("group." + primaryGroup, true);
|
user.setPermission("group." + primaryGroup, true);
|
||||||
} catch (ObjectAlreadyHasException ignored) {}
|
} catch (ObjectAlreadyHasException ignored) {}
|
||||||
user.setPrimaryGroup(primaryGroup);
|
user.setPrimaryGroup(primaryGroup);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin.getDatastore().saveUser(user);
|
plugin.getDatastore().saveUser(user);
|
||||||
|
Loading…
Reference in New Issue
Block a user