LuckPerms

LuckPerms

41.4k Downloads

getMetaData().getPrefix() is returning null

ItsIsaacIO opened this issue ยท 2 comments

commented

Description

Im using the latest version of LuckPerms but when I try getting the prefix from the group metadata it returns null. The metadata isn't null so its a problem with the prefix.

Reproduction Steps

Get the metadata of a group and then use .getPrefix() which returns null.

Expected Behaviour

I expected to receive the prefix from the group a player is currently parented inside.

Server Details

git-Paper-55 (MC:1.20.1)

LuckPerms Version

v5.4.98

Logs and Configs

https://gist.github.com/ItsIsaacIO/c1e50b317ac1020ac3ef093485953095

Extra Details

No response

commented

CachedMetaData.getPrefix() is able to return null when there is no resulting prefix (no prefix was set, no existing prefix applies in current context, etc.). If that's unexpected, it suggests wrongly configured prefixes in your permission setup or plugin configuration.

commented

Can you also provide your code that you used?