[API] Default group not getting removed after
marlester-dev opened this issue ยท 1 comments
Description
If I do like this:
user.data().clear();
luckPerms.getUserManager().saveUser(user);
luckPerms.getUserManager().cleanupUser(user);
User still remains visible in the lp editor's database with group.default, happens only if user had group that inherits default group.
I want to delete the user completely. (user is "offline")
Reproduction Steps
- Give the user 'vip' group (group that inherits default group).
- Using api execute this code (you need to get the offline user and luckPerms):
user.data().clear();
luckPerms.getUserManager().saveUser(user);
luckPerms.getUserManager().cleanupUser(user); - open the lp editor, you should see something like this:
Expected Behaviour
User gets completely wiped out, deleted.
Server Details
git-Purpur-1964 (MC: 1.19.4)*
LuckPerms Version
'net.luckperms:api:5.4' (gradle), 5.4.71 on server
Logs and Configs
No logs.
Extra Details
I want to completely delete and wipe out the user, but with those who have group that inherits default group, it does not work and they still have default group in result and I can't delete it then. I need to delete the user completely, otherwise lp editor users will get trashed up by random users.
Duplicate of #3663
Deleted that one, it created 2 issues for some reason. But I still want fix/solution to delete the user.