LuckPerms

LuckPerms

905k Downloads

Offline user node changes won't get saved

Truhera opened this issue ยท 0 comments

commented

Description

I have a procedure where I want to remove an InheritanceNode if it is found on an offline users node data. But the changed node data doesn't get saved correctly when I queried the user information via "/lp user info" beforehand (where I noticed the problem).

Let's assume the user has a parent group of "default" and "legendary", the group "legendary" does get removed from the NodeMap but after trying to save the data does not get persisted in the database and another NodeMap query tells me that the node wasn't removed at all. This behavior does not apply when I'm not querying the user info with the command beforehand. Maybe there is some caching which interferes with manually loading and saving data.

grafik

Reproduction Steps

  1. Restart the server without any users on it
  2. After the server has started, query the affected user with the luckperms command
  3. Remove some node data like seen above
  4. Query user data again with luckperms command

Expected Behaviour

The node data should be saved correctly. The data get's correctly saved when I don't query the user data beforehand.

Server Details

NachoSpigot 1.8

LuckPerms Version

v5.4.118

Logs and Configs

[19:45:17 INFO]: Node on first querying: group.default true
[19:45:17 INFO]: Node on first querying: group.legendary true
[19:45:17 INFO]: Node before save: group.default true
[19:45:20 INFO]: Node after save: group.default true
[19:45:20 INFO]: Node after save: group.legendary true

Extra Details

No response