LuckPerms

LuckPerms

41.4k Downloads

user.getPermissionValue does not check default user

bloodmc opened this issue ยท 6 comments

commented

@lucko I just tested with latest dev build and this issue still occurs.

[me.ryanhamshire.griefprevention.permission.GPPermissionHandler:getUserPermission:140]:
value = UNDEFINED
contexts [gp_claim=122b2c6c-abf8-4233-b7c4-b848ec334cd7]
permission griefprevention.flag.block-break.minecraft.grass.source.minecraft.player.0

This is in my default.json
{
"gp_claim": "122b2c6c-abf8-4233-b7c4-b848ec334cd7"
},
{
"griefprevention.flag.block-break": true
}

commented

[21:43:19] [Server thread/INFO] [STDOUT/]: [me.lucko.luckperms.sponge.service.persisted.PersistedSubject:getPermissionValue:254]: getPermissionValue ImmutableContextSet(contexts={world=[world], gp_claim_defaults=[BASIC]}), node griefprevention.flag.interact-block-primary.minecraft.stone.source.minecraft.player.0, t = FALSE

Restarting the server always works but when I change the value, while in game, it seems LP never updates cache and continues to use the PersistedSubject value. The value above should be returning TRUE yet it returns FALSE since that is the value my subject had on startup.

https://github.com/lucko/LuckPerms/blob/a23f995717d5b9ae9c14bf6d56ff93e3e3a62e9c/sponge/src/main/java/me/lucko/luckperms/sponge/service/persisted/PersistedSubject.java#L253

commented

Change which value, and by what means? Using commands, editing the file??

commented

Please reopen if this isn't fixed, but I recall you saying it wasn't happening anymore?