如何在 Velocity 上使用 BungeeCord 消息通道?

发布于 2025-01-10 16:48:14 字数 354 浏览 5 评论 0原文

我尝试在 Velocity 上使用 BungeeCord 消息通道。

我知道这个工作。这是我的代码:

player.sendMessage("§aWait...");
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("Connect");
out.writeUTF("Lobby2");

player.sendPluginMessage(plugin, "BungeeCord", out.toByteArray());

如果我使用 BungeeCord 作为我的代理,此代码可以工作。但如果我使用 Velocity 则不会。

I try to use the BungeeCord Message Channel on Velocity.

I know this work. Here is my code:

player.sendMessage("§aWait...");
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF("Connect");
out.writeUTF("Lobby2");

player.sendPluginMessage(plugin, "BungeeCord", out.toByteArray());

This code works, if I use BungeeCord as my proxy. But not if I use Velocity.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时间海 2025-01-17 16:48:14

由于较新的 Minecraft 版本,建议使用 bungeecord:main 通道(尽管 Velocity 应该可以很好地支持两者)。

另外,请务必确保您使用的 Velocity 版本高于 v1.1.0 (

另一件事,虽然没有必要(并且可能不会改变此问题的任何内容),但建议也 启用速度支持

如果您仍然遇到此问题,最好在 Velocity Github 存储库 上创建问题,这样他们也许能够为您提供进一步的帮助!

Since more recent Minecraft versions, it is recommended to use the bungeecord:main channel (though Velocity should support both just fine).

Also, it is important to make sure that you use a Velocity version newer than v1.1.0 (as seen here).

Another thing, though it should not be necessary (and probably won't change anything for this issue), it's recommended to also enable velocity-support.

If you remain having this issue, it might be best to create an issue on the Velocity Github repository, so they may be able to help you further!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文