Give default group if needed on UserManager#modifyUser (#2971)

This commit is contained in:
Federico López 2021-04-07 04:11:19 -03:00 committed by GitHub
parent c2231bcc2e
commit 46efe0ef93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,10 @@ public class ApiUserManager extends ApiAbstractManager<User, net.luckperms.api.m
action.accept(user.getApiProxy());
return user;
}, this.plugin.getBootstrap().getScheduler().async())
.thenCompose(user -> this.plugin.getStorage().saveUser(user));
.thenCompose(user -> {
this.plugin.getUserManager().giveDefaultIfNeeded(user);
return this.plugin.getStorage().saveUser(user);
});
}
@Override