Fix migrating null / non-existent usernames - reverts parts of 6bfeec6, fixes #514

This commit is contained in:
Luck 2017-10-22 09:07:08 +01:00
parent ecfbed00b1
commit 5ac0f93214
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
3 changed files with 0 additions and 5 deletions

View File

@ -143,9 +143,6 @@ 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);

View File

@ -168,7 +168,6 @@ 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);

View File

@ -113,7 +113,6 @@ public class MigrationBungeePerms extends SubCommand<Object> {
}
// Make a LuckPerms user for the one being migrated.
plugin.getStorage().saveUUIDData(u.getUUID(), u.getName()).join();
plugin.getStorage().loadUser(u.getUUID(), u.getName()).join();
me.lucko.luckperms.common.model.User user = plugin.getUserManager().getIfLoaded(u.getUUID());