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

Pass through packets in config phase #1459

Open
wants to merge 1 commit into
base: dev/3.0.0
Choose a base branch
from

Conversation

valaphee
Copy link

@valaphee valaphee commented Nov 14, 2024

Re-adds #1326 which got reverted by #1371

also adds pass through for the PluginMessagePacket

logger.error("Error forwarding known packs response to backend:", ex);
return null;
});
if (player.getConnectionInFlight() != null) {
Copy link
Member

Choose a reason for hiding this comment

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

I think some aspects of this need reverting, the connection isn't always going to be inflight when we jump through configuration, but, events should still be fired, etc

Copy link

Choose a reason for hiding this comment

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

So that IF could just be moved in front of

   player.getConnectionInFlight().ensureConnected().write(packet);

tho... it might affect plugins listening to config event?

Copy link
Member

Choose a reason for hiding this comment

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

that would prevent plugins from being able to interact with reconfiguration while on a server, this block basically needs reverting

@Stis780
Copy link

Stis780 commented Nov 21, 2024

This is very good, thank you!

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

Successfully merging this pull request may close these issues.

3 participants