Skip to content

Integrate with Namet.ag for live cape updates #6

Description

@eyezahhhh

Namet.ag is a Minecraft player database that powers projects like Cosmetica and Mantle. It keeps track of player's capes across numerous platforms like OptiFine and MinecraftCapes and third party mods to display these capes in-game.

Namet.ag is already configured to retrieve capes from the Poly+ API, but currently it only does that via periodic polling. In order to receive updates faster and enable real-time cape updates, you can configire the Poly+ API to ping a Namet.ag webhook whenever a player's equipped changes (or is unequipped): GET https://api.namet.ag/users/{UUID}/capes/update.
Swagger docs
This webhook triggers a new cape lookup on Namet.ag's side and capes are usually updated within a few seconds. Authentication is required for this endpoint via the Authorization header ("Bearer XXX"). I can provide an access token outside of this GitHub issue.

I'd be very grateful if you were to implement this as it helps Namet.ag and Cosmetica to be more tightly integrated with Poly+ capes. Cosmetica uses this integration to direct players to the Poly+ store page (as seen here).

The code that Namet.ag uses to retrieve capes from Poly+ can be found here. Feel free to PR or make an issue in that repo if you see any potential issues, but the current implementation seems to be working without fault from what I can tell.

Let me know if/when you're keen to implement this and let me know if there's any other info you need!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions