如何在 Velocity 上使用 BungeeCord 消息通道?
我尝试在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于较新的 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!