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

Player#sendPluginMessage doesn't sending data. #1068

Closed
Straikerinos opened this issue Aug 23, 2023 · 5 comments
Closed

Player#sendPluginMessage doesn't sending data. #1068

Straikerinos opened this issue Aug 23, 2023 · 5 comments

Comments

@Straikerinos
Copy link

After build 264 (tested also with build 265) sending PluginMessage via specified player isn't no longer working.
I have to use directly ServerConnection to send Plugin message.
Code:
ByteArrayDataOutput out = ByteStreams.newDataOutput(); out.writeUTF("info-test"); source.sendPluginMessage(MinecraftChannelIdentifier.from("gk:test"), out.toByteArray());
Bukkit (paper) side: git-Paper-159 (MC: 1.20.1)

@electronicboy
Copy link
Member

what do you mean, "via specified player", cos sending a plugin message to the player will send the message to the player and not to the server

@kyngs
Copy link
Contributor

kyngs commented Aug 23, 2023

Is this related to #591? Cuz that is build 264

@Straikerinos
Copy link
Author

what do you mean, "via specified player", cos sending a plugin message to the player will send the message to the player and not to the server

In older builds it was possible to send a PluginMessage directly like this.
But now in this case nothing is sent and no PluginMessage is sent to the server where the player is.

@electronicboy
Copy link
Member

Player#sendPluginMessage has always sent the plugin message to the client, nothing has changed on that front, unless you mean you're calling that inside of bukkit and the proxy isn't sending data back when you do that; In which case, all I can guess is going to boil down to making sure that you properly registered your channels and are using the latest build, otherwise, we'd need more repo info

@Straikerinos
Copy link
Author

If it never worked from Proxy -> Bukkit side, then it's my fault.

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

No branches or pull requests

3 participants