How to reload?
Closed this issue ยท 1 comments
LuckPerms api = LuckPermsProvider.get();
User user = api.getUserManager().getUser(UUID.fromString(spielerUUID));
InheritanceNode groupNode = InheritanceNode.builder(teamName).build();
user.data().add(groupNode);
api.getUserManager().saveUser(user);
api.runUpdateTask();
Actually this code should be used to update the permissions. But I have to type ingame /lp editor or reload Luckperms to update permissions.