mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-24 21:11:41 +02:00
Fix demote command not removing old group
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user