Fix updating primary groups for players who've never joined the server with SQL storage types (#500)
This commit is contained in:
@@ -143,6 +143,10 @@ public class MigrationPermissionsEx extends SubCommand<Object> {
|
||||
continue;
|
||||
}
|
||||
|
||||
// save uuid data for the user
|
||||
plugin.getStorage().saveUUIDData(u, user.getName());
|
||||
|
||||
// load in a user instance
|
||||
plugin.getStorage().loadUser(u, user.getName()).join();
|
||||
User lpUser = plugin.getUserManager().getIfLoaded(u);
|
||||
|
||||
|
||||
@@ -168,6 +168,7 @@ public class MigrationZPermissions extends SubCommand<Object> {
|
||||
username = entity.getDisplayName();
|
||||
}
|
||||
|
||||
plugin.getStorage().saveUUIDData(u, String.valueOf(username)).join();
|
||||
plugin.getStorage().loadUser(u, username).join();
|
||||
User user = plugin.getUserManager().getIfLoaded(u);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user