How to manipulate offline player data


#1

hey, can you help me?


How to solve this problem?
Thank you!


#2

No idea what PlayerData is. What are you wanting to do exactly?


#3

I want to manipulate data from offline players.
but I don’t know how to do it.
i need an example.
Thank.
PS: English is not my native language; please excuse typing errors


#4

Hes asking what data do you want to modify of a player?

Here is a example

User user;
boolean invun = user.get(Keys.INVULNERABLE).get();

#5

Instead of get(PlayerData.class), try using getOrCreate(PlayerData.class).