Fix demote command not removing old group

This commit is contained in:
Luck 2017-01-14 08:27:09 +00:00 committed by GitHub
parent d06fda6d9d
commit cd4a684613

View File

@ -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());