Give default group if needed after "parent remove" (#405)

This commit is contained in:
Luck 2017-07-30 21:08:05 +01:00
parent 4ecd899bac
commit 234b9cafd7
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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 {