-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEAT]: Events (e.g. TransactionEvent) #15
Comments
This is out of scope for what VaultUnlocked is and should be handled in the individual plugins, such as essentials. Any implementation inside VaultUnlocked would be overrode when the individual plugins implement the API anyways. |
Alright thanks |
Most economy plugins have an implementation of those events, which you could cross reference what the current vault eco provider is |
What I would recommend is using a library such as AspectJ and add a listener to the event, I may look at adding this as a functionality in a separate class/library now that I think about it, using aspectj |
Thanks for the suggestion. Would I need to listen to the events of the different implementations such as EssentialX or could I also just listen to I am new to aspectj so if you have any tips to help me out I would really appreciate that :) |
The vault execution, and make sure to listen to vault2 package too since some plugins may utilize the enhanced API |
Feature Description
An Event for when a transaction happened that includes request and target information as well as the amount of the transaction.
Similar to: https://jd-v2.essentialsx.net/net/essentialsx/api/v2/events/transactionevent
Reasoning
I want to build a plugin that provides transaction history for example.
Having events would be a great addition and would allow for many new features such as dashboards etc.
The text was updated successfully, but these errors were encountered: