LuckPerms

LuckPerms

41.4k Downloads

"Primary group" displays the wrong group in the database

ccyounga opened this issue ยท 1 comments

commented

Description

When we started working with the database to pass the group data to our site, we noticed that the main group of the player is displayed as default in the database, although in fact it is not. In the game, his group is displayed correctly and all rights are present, however, the database is incorrect, which prevents the correct determination of the player's group on our website.
Seeing this problem, I tried to go in and reissue the group to myself, after which it was correctly displayed in the database. However, I have always given myself a group in the correct way, as well as other players, but the group in the total is displayed incorrectly in the database!
What could be the reason?

Screenshots to prove it:
First example:
https://imgur.com/zr5MoUb
https://imgur.com/L5sSfWh
Second example:
https://imgur.com/d3tIVHy
https://imgur.com/xbiojVe

Reproduction Steps

Just connected MySQL

Expected Behaviour

Correct "primary group" entry in the database.

Server Details

Paper #387 (1.18.2)

LuckPerms Version

5.4.30

Logs and Configs

https://gist.github.com/ccyounga/7ca05276a06cb0e0e54439b10bf7e021

Extra Details

If I reissued the group manually while in the game, then there were no problems with displaying it in the database. However, the rest of the players remain with problems, although the group was given to them correctly.

commented

Please see https://luckperms.net/wiki/Configuration#primary-group-calculation

The database is ignored unless the stored mode is in use.