mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 19:46:32 +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 {
|
try {
|
||||||
user.unsetPermission(old);
|
user.unsetPermission(oldNode);
|
||||||
} catch (ObjectLacksException ignored) {}
|
} catch (ObjectLacksException ignored) {}
|
||||||
try {
|
try {
|
||||||
user.setPermission(NodeFactory.newBuilder("group." + previousGroup.getName()).setServer(server).setWorld(world).build());
|
user.setPermission(NodeFactory.newBuilder("group." + previousGroup.getName()).setServer(server).setWorld(world).build());
|
||||||
|
Loading…
Reference in New Issue
Block a user