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

fix: correctly bind plugin instance to bungee plugin injector #1143

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

derklaro
Copy link
Member

Motivation

The current platform plugin manager for bungeecord incorrectly binds the instance of a plugin to the parent injector instead of the specified injector that is used to construct the plugin instance. This leads to the problem, that the instance passed to the plugin classes is always the plugin instance of the first constructed plugin, not of the current plugin.

Modification

Correctly bind the plugin instance to the injector responsible for the current plugin instead of the parent injector.

Result

BungeeCord plugins that are using platform inject are now receiving the correct plugin instance, instead of the instance of the first constructed plugin.

@derklaro derklaro added this to the 4.0.0-RC8 milestone Feb 25, 2023
@derklaro derklaro self-assigned this Feb 25, 2023
@derklaro derklaro added v: 4.X This pull should be included in the 4.0 release t: fix A pull request introducing a fix for a bug. in: plugin inject An issue/pull request releated to the plugin inject module code labels Feb 25, 2023
@0utplay 0utplay merged commit 96f790d into nightly Feb 25, 2023
@0utplay 0utplay deleted the bungee-plugin-instance-inject branch February 25, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: plugin inject An issue/pull request releated to the plugin inject module code t: fix A pull request introducing a fix for a bug. v: 4.X This pull should be included in the 4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants