diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/user/UserDemote.java b/common/src/main/java/me/lucko/luckperms/common/commands/user/UserDemote.java index e0bd8911..7b621b11 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/user/UserDemote.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/user/UserDemote.java @@ -155,7 +155,7 @@ public class UserDemote extends SubCommand { } try { - user.unsetPermission(old); + user.unsetPermission(oldNode); } catch (ObjectLacksException ignored) {} try { user.setPermission(NodeFactory.newBuilder("group." + previousGroup.getName()).setServer(server).setWorld(world).build());