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

API feature request - Event on database loaded #25

Open
AerWyn81 opened this issue Jun 16, 2022 · 4 comments
Open

API feature request - Event on database loaded #25

AerWyn81 opened this issue Jun 16, 2022 · 4 comments
Labels
enhancement New feature or request waiting for input Waiting for input from the creator of the issue, in a broader sense than an answer to a question.

Comments

@AerWyn81
Copy link

Hi,

As seen together on Discord, it would be interesting & comfortable to have access to an event when the plugin has loaded.

@CC007 CC007 added the enhancement New feature or request label Jun 26, 2023
@CC007
Copy link
Owner

CC007 commented Nov 26, 2023

Here is a release candidate (zipped) of the plugin with this feature.
HeadsPluginAPI-3.3.0-SNAPSHOT.zip

What this version actually does is send an event when a category is done updating (CategoryUpdatedEvent) and another event when all categories in the batch are done updating (CategoriesUpdatedEvent).

That last one is the one you want to use, based on what you requested.

Also, The plugin itself also has a listener for these events. These listeners will send a message to people configured in the config.yml (if they are online), telling them that the category is / categories are done updating.

I did some of my own testing, but could you unzip it and test if it suits your needs?

@CC007 CC007 added the waiting for input Waiting for input from the creator of the issue, in a broader sense than an answer to a question. label Nov 26, 2023
@AerWyn81
Copy link
Author

Hi,

Thanks for the integration and the explanations.
When I have a bit of time, I'll give it a try.

Also, as it's been a long time since I posted this issue and I've been rereading it diagonally, I don't seem to have seen a way of retrieving a head via an unique id, which would suit my use case.
The plugin I'm developing allows the player to give themselves a head with a texture based on a unique id.
My goal, if possible, would be to integrate your API so that a player can retrieve a head from it and use it in my plugin like I did for some others where that is possible (https://aerwyn81.github.io/HeadBlocks/#/config/config?id=heads)

@CC007
Copy link
Owner

CC007 commented Nov 27, 2023

Btw, for you to use the events yourself, Here's the api dependency (zipped).

headsplugin-api-3.3.0.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request waiting for input Waiting for input from the creator of the issue, in a broader sense than an answer to a question.
Projects
None yet
Development

No branches or pull requests

2 participants