mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Give default group if needed after "parent remove" (#405)
This commit is contained in:
parent
4ecd899bac
commit
234b9cafd7
@ -97,6 +97,10 @@ public class ParentRemove extends SharedSubCommand {
|
||||
.action("parent remove " + args.stream().map(ArgumentUtils.WRAPPER).collect(Collectors.joining(" ")))
|
||||
.build().submit(plugin, sender);
|
||||
|
||||
if (holder instanceof User) {
|
||||
plugin.getUserManager().giveDefaultIfNeeded(((User) holder), false);
|
||||
}
|
||||
|
||||
save(holder, sender, plugin);
|
||||
return CommandResult.SUCCESS;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user