mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-28 03:57:36 +01:00
Give default group if needed on UserManager#modifyUser (#2971)
This commit is contained in:
parent
c2231bcc2e
commit
46efe0ef93
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user