PluginBugs / Issues-CosmeticsCore

Repository used to keep track of issues of my plugin CosmeticsCore
https://lonedev.gitbook.io/cosmeticscore/
0 stars 0 forks source link

Add Placeholder(s) #252

Open Tek78 opened 2 months ago

Tek78 commented 2 months ago

Terms

Discord tag (optional)

No response

Describe the solution you'd like

If possible adding even a single placeholder (preferably via PlaceholderAPI) that returns which cosmetic(s) the player has equipped, or if they have a cosmetic type equipped at all (eg %cosmeticscore_hat_equipped%).

Is your feature request related to a problem?

Yes. I need to know the equipment of the player alongside their cosmetics (mainly helmet slot). There's no way for me to check that as I'm assuming the hat cosmetics use packets to fake-equip the item.

Describe alternatives you've considered

There's honestly not a lot of alternatives for doing this, at least not ones I can think of. The only thing I thought of is checking the NBT/Custom Model Data, though obviously that didn't work.

Additional context

No response

LoneDev6 commented 1 week ago

Hello, wouldn't an API method be better?

CosmeticsCoreApi#getEquippedCosmeticsKeys(player)