HypixelDev / PublicAPI

Official Java implementation of the Hypixel Public API.
https://api.hypixel.net
MIT License
535 stars 151 forks source link

"stats.Skyblock.profiles" return null in the example #612

Closed StarZebra closed 10 months ago

StarZebra commented 10 months ago

I am trying to use the hypixel api for some skyblock stuff and started off by copy pasting the example for getting the skyblock profiles from a player only to get the error message that the player has no skyblock profiles, I did change the uuid in the util to mine. I did some testing and it seems like the '.' in the getObjectProperty doesnt seem to actually work. Whenever i remove the ".Skyblock.profiles" part and only keep the "stats" it prints the stats just fine but when i add the dots it returns null, i cannot figure out why since this is my first time working with json and an api.

Thanks for any help in advance.

StarZebra commented 10 months ago

nvm it worked when i copy pasted a fifth time