Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Placeholder(s) #252

Open
4 tasks done
Tek78 opened this issue Jul 12, 2024 · 1 comment
Open
4 tasks done

Add Placeholder(s) #252

Tek78 opened this issue Jul 12, 2024 · 1 comment

Comments

@Tek78
Copy link

Tek78 commented Jul 12, 2024

Terms

  • I'm using the very latest version of CosmeticsCore and its dependencies.
  • I already searched on this Github page to check if the same suggestion was already reported.
  • I already searched on the plugin wiki to know if the feature is already implemented.
  • I already searched on the Discord server to know if anyone already has a solution for this or if the feature was already suggested.

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
Copy link
Contributor

LoneDev6 commented Sep 3, 2024

Hello,
wouldn't an API method be better?

CosmeticsCoreApi#getEquippedCosmeticsKeys(player)

@LoneDev6 LoneDev6 moved this to Need answer in Other plugins Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Need answer
Development

No branches or pull requests

2 participants