mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Fix demote command not removing old group
This commit is contained in:
parent
d06fda6d9d
commit
cd4a684613
@ -155,7 +155,7 @@ public class UserDemote extends SubCommand<User> {
|
||||
}
|
||||
|
||||
try {
|
||||
user.unsetPermission(old);
|
||||
user.unsetPermission(oldNode);
|
||||
} catch (ObjectLacksException ignored) {}
|
||||
try {
|
||||
user.setPermission(NodeFactory.newBuilder("group." + previousGroup.getName()).setServer(server).setWorld(world).build());
|
||||
|
Loading…
Reference in New Issue
Block a user