LuckPerms

LuckPerms

41.4k Downloads

[Bug] LuckPerms API: Get prefix provide an NPE

x9nico opened this issue ยท 2 comments

commented

Hello, I'm trying to get Prefix of Player with LuckPerms API.

I tried this: user.getCachedData().getMetaData().getPrefix();

and it provides an NPE on this line.

I'm using purpur 1.16.5 as server software.

Latest build of LP.

commented

I imagine user is probably null.

https://luckperms.net/wiki/Developer-API-Usage#obtaining-a-user-instance

I tried this, but I have same problem