LuckPerms

LuckPerms

41.4k Downloads

[API] Default group not getting removed after

marlester-dev opened this issue ยท 1 comments

commented

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.
lp
I want to delete the user completely. (user is "offline")

Reproduction Steps

  1. Give the user 'vip' group (group that inherits default group).
  2. 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);
  3. open the lp editor, you should see something like this:
    lp

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.

commented

Duplicate of #3663

Deleted that one, it created 2 issues for some reason. But I still want fix/solution to delete the user.