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

Provide registered listeners in PluginManager #9643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Aeltumn
Copy link
Contributor

@Aeltumn Aeltumn commented Aug 24, 2023

This introduces new methods on the PluginManager that supersede the old registerEvent/registerEvents methods. These new methods return a RegisteredListener object which can be used by plugins to better handle their registered listeners. The RegisteredListener now also has an unregister() method which can be used to directly unregister that listener from all relevant handler lists instead of having to iterate over them all.

@Aeltumn Aeltumn requested a review from a team as a code owner August 24, 2023 14:09
Copy link
Member

@Machine-Maker Machine-Maker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, we generally steer clear of using "var" anywhere.

@Aeltumn
Copy link
Contributor Author

Aeltumn commented Nov 12, 2023

Rebased and ready for re-review.

@Aeltumn
Copy link
Contributor Author

Aeltumn commented Jan 21, 2024

Rebased and cleaned up to match new guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Changes required
Development

Successfully merging this pull request may close these issues.

5 participants