How get custom nbt from player

I wan’t to get custom nbt of player to store it in DB but i don’t find how i can get player nbt who are add by mods

NBT data is stored in the DataContainer in Sponge (Custom and vanilla)

Player player;
DataContainer container = player.toContainer();

I personally don’t use NBT data so I maybe wrong, but thats what I remember from API 2

if I recall, data without a corresponding data manipulator is crammed under the Unsafe DataQuery.

1 Like